Git Product home page Git Product logo

Comments (1)

dosubot avatar dosubot commented on July 18, 2024 2

To ensure that the translated Portuguese labels for dataset columns are displayed in filters when creating dashboards in Superset, you need to add the translations for the relevant labels in the messages.po file. Here is an example of how you can add translations for dataset column labels:

#: superset-frontend/src/explore/components/controls/DndColumnSelectControl/ColumnSelectPopover.tsx:371
msgid "to add calculated columns"
msgstr "para adicionar colunas calculadas"

#: superset-frontend/src/explore/components/controls/MetricControl/AdhocMetricEditPopover/index.jsx:421
msgid "to add metrics"
msgstr "para adicionar métricas"

#: superset-frontend/src/explore/components/DatasourcePanel/index.tsx:318
msgid "to edit or add columns and metrics."
msgstr "para editar ou adicionar colunas e métricas."

#: superset-frontend/src/explore/components/controls/DndColumnSelectControl/ColumnSelectPopover.tsx:360
#: superset-frontend/src/explore/components/controls/DndColumnSelectControl/ColumnSelectPopover.tsx:395
msgid "to mark a column as a time column"
msgstr "para marcar uma coluna como uma coluna de tempo"

#: superset-frontend/src/features/datasets/AddDataset/DatasetPanel/MessageContent.tsx:47
msgid "to open SQL Lab. From there you can save the query as a dataset."
msgstr "para abrir o SQL Lab. A partir daí, você pode salvar a consulta como um conjunto de dados."

#: superset-frontend/src/explore/components/ExploreChartPanel/index.jsx:332
msgid "to visualize your data."
msgstr "para visualizar seus dados."

Additionally, ensure that the messages.po file is correctly configured with the necessary metadata and encoding, as shown below:

msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-06-04 22:57+0400\n"
"PO-Revision-Date: 2023-05-22 08:04-0400\n"
"Last-Translator: \n"
"Language: pt_BR\n"
"Language-Team: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.15.0\n"

By adding these translations and ensuring the messages.po file is properly configured, the labels for dataset columns will be displayed in Portuguese in the filters when creating dashboards in Superset [1][2].

To continue talking to Dosu, mention @dosu.

from superset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.