Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[l10n] Improve Portuguese (pt-PT) locale #13348

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"languageTag": "pt-PT",
"importName": "ptPT",
"localeName": "Portuguese",
"missingKeysCount": 4,
"missingKeysCount": 0,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ptPT.ts"
},
Expand Down
26 changes: 13 additions & 13 deletions packages/x-data-grid/src/locales/ptPT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ const ptPTGrid: Partial<GridLocaleText> = {
// Export selector toolbar button text
toolbarExport: 'Exportar',
toolbarExportLabel: 'Exportar',
toolbarExportCSV: 'Baixar como CSV',
toolbarExportCSV: 'Descarregar como CSV',
toolbarExportPrint: 'Imprimir',
toolbarExportExcel: 'Baixe como Excel',
toolbarExportExcel: 'Descarregar como Excel',

// Columns management text
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',
columnsManagementSearchTitle: 'Procurar',
columnsManagementNoColumns: 'Sem colunas',
columnsManagementShowHideAllText: 'Mostrar/Ocultar Todas',
columnsManagementReset: 'Repor',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe columnsManagementReset is omitted for all locales.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it because the field is recent (#12972) and maybe no else translated it yet on other locales?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, can you confirm it @MBilalShafi ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the columnsManagementReset key is supposed to be translated just like every other.


// Filter panel text
filterPanelAddFilter: 'Adicionar filtro',
filterPanelRemoveAll: 'Deletar tudo',
filterPanelRemoveAll: 'Excluir todos',
filterPanelDeleteIconLabel: 'Excluir',
filterPanelLogicOperator: 'Operador lógico',
filterPanelOperator: 'Operador',
Expand Down Expand Up @@ -104,9 +104,9 @@ const ptPTGrid: Partial<GridLocaleText> = {
filterValueFalse: 'falso',

// Column menu text
columnMenuLabel: 'Cardápio',
columnMenuLabel: 'Menu',
columnMenuShowColumns: 'Mostrar colunas',
columnMenuManageColumns: 'Gerenciar colunas',
columnMenuManageColumns: 'Gerir colunas',
columnMenuFilter: 'Filtro',
columnMenuHideColumn: 'Ocultar coluna',
columnMenuUnsort: 'Desclassificar',
Expand Down Expand Up @@ -149,11 +149,11 @@ const ptPTGrid: Partial<GridLocaleText> = {
// Column pinning text
pinToLeft: 'Fixar à esquerda',
pinToRight: 'Fixar à direita',
unpin: 'Liberar',
unpin: 'Desafixar',

// Tree Data
treeDataGroupingHeaderName: 'Group',
treeDataExpand: 'veja crianças',
treeDataGroupingHeaderName: 'Grupo',
treeDataExpand: 'ver crianças',
treeDataCollapse: 'esconder crianças',

// Grouping columns
Expand All @@ -164,7 +164,7 @@ const ptPTGrid: Partial<GridLocaleText> = {
// Master/detail
detailPanelToggle: 'Alternar painel de detalhes',
expandDetailPanel: 'Expandir',
collapseDetailPanel: 'Colapso',
collapseDetailPanel: 'Colapsar',

// Row reordering text
rowReorderingHeaderName: 'Reordenação de linhas',
Expand Down
Loading