Comments (1)
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)
- How to make gradient color for metric puted as bar in mixed chart in Superset 4.0.0. HOT 2
- [Dev build] Stacked chart tooltip highlights a different series than the one I'm hovering over HOT 4
- Schema name and Table name are empty after CSV import HOT 1
- [SIP] Ability to connect with a second user to run db migrations only HOT 2
- Extend API to handle uuid HOT 1
- Getting superset error: 'str' object has no attribute 'tzinfo' when using elasticsearch with superset:// HOT 4
- Error 'DISALLOWED_SQL_FUNCTION' in new superset update 4.0.2 HOT 4
- Superset is not starting because of secret key issue. HOT 4
- [SIP] Ability to connect to postgres with different schema with superset_config HOT 9
- Compose file './docker-compose.yml' invalid HOT 7
- Custom chart plugins not working in Kubernetes deployment HOT 2
- Remove or make less prominent legacy contributing guide HOT 3
- Request for neo4j driver HOT 1
- SQL Lab Error 'str' object has no attribute 'set' HOT 4
- No module named 'superset.translations.utils' HOT 3
- subquery calculated columns not supported as dimensions with sql_mode=only_full_group_by HOT 4
- SECRET KEY ERROR HOT 7
- When a user wants to delete a dataset , the confirmation message could be more shaped HOT 2
- A report not yet executed is marked like a success HOT 1
- On Country Map, Cross-Filtering is not operational as a source HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.