Skip to content

[l10n] Improve Czech [cs-CZ] and Slovak [sk-Sk] locales #16968

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

Merged
merged 1 commit into from
Mar 17, 2025
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
4 changes: 2 additions & 2 deletions docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"languageTag": "cs-CZ",
"importName": "csCZ",
"localeName": "Czech",
"missingKeysCount": 19,
"missingKeysCount": 0,
"totalKeysCount": 139,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/csCZ.ts"
},
Expand Down Expand Up @@ -235,7 +235,7 @@
"languageTag": "sk-SK",
"importName": "skSK",
"localeName": "Slovak",
"missingKeysCount": 20,
"missingKeysCount": 0,
"totalKeysCount": 139,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/skSK.ts"
},
Expand Down
57 changes: 27 additions & 30 deletions packages/x-data-grid/src/locales/csCZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const csCZGrid: Partial<GridLocaleText> = {
// Root
noRowsLabel: 'Žádné záznamy',
noResultsOverlayLabel: 'Nenašly se žadné výsledky.',
// noColumnsOverlayLabel: 'No columns',
// noColumnsOverlayManageColumns: 'Manage columns',
noColumnsOverlayLabel: 'Žádné sloupce',
noColumnsOverlayManageColumns: 'Spravovat sloupce',

// Density selector toolbar button text
toolbarDensity: 'Zobrazení',
Expand Down Expand Up @@ -40,15 +40,16 @@ const csCZGrid: Partial<GridLocaleText> = {
toolbarQuickFilterDeleteIconLabel: 'Vymazat',

// Prompt toolbar field
// toolbarPromptControlPlaceholder: 'Type a prompt…',
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
// toolbarPromptControlLabel: 'Prompt input',
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
// toolbarPromptControlSendActionLabel: 'Send',
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
toolbarPromptControlPlaceholder: 'Napište požadavek…',
toolbarPromptControlWithRecordingPlaceholder: 'Napište nebo nahrajte požadavek…',
toolbarPromptControlRecordingPlaceholder: 'Naslouchám požadavku…',
toolbarPromptControlLabel: 'Vstup požadavku',
toolbarPromptControlRecordButtonDefaultLabel: 'Nahrát',
toolbarPromptControlRecordButtonActiveLabel: 'Zastavit nahrávání',
toolbarPromptControlSendActionLabel: 'Odeslat',
toolbarPromptControlSendActionAriaLabel: 'Odeslat požadavek',
toolbarPromptControlErrorMessage:
'Při zpracování požadavku došlo k chybě. Zkuste to prosím znovu s jiným požadavkem.',

// Export selector toolbar button text
toolbarExport: 'Export',
Expand All @@ -62,7 +63,7 @@ const csCZGrid: Partial<GridLocaleText> = {
columnsManagementNoColumns: 'Žádné sloupce',
columnsManagementShowHideAllText: 'Zobrazit/skrýt vše',
columnsManagementReset: 'Resetovat',
// columnsManagementDeleteIconLabel: 'Clear',
columnsManagementDeleteIconLabel: 'Vyčistit',

// Filter panel text
filterPanelAddFilter: 'Přidat filtr',
Expand All @@ -78,9 +79,9 @@ const csCZGrid: Partial<GridLocaleText> = {

// Filter operators text
filterOperatorContains: 'obsahuje',
// filterOperatorDoesNotContain: 'does not contain',
filterOperatorDoesNotContain: 'neobsahuje',
filterOperatorEquals: 'rovná se',
// filterOperatorDoesNotEqual: 'does not equal',
filterOperatorDoesNotEqual: 'nerovná se',
filterOperatorStartsWith: 'začíná na',
filterOperatorEndsWith: 'končí na',
filterOperatorIs: 'je',
Expand All @@ -101,9 +102,9 @@ const csCZGrid: Partial<GridLocaleText> = {

// Header filter operators text
headerFilterOperatorContains: 'Obsahuje',
// headerFilterOperatorDoesNotContain: 'Does not contain',
headerFilterOperatorDoesNotContain: 'Neobsahuje',
headerFilterOperatorEquals: 'Rovná se',
// headerFilterOperatorDoesNotEqual: 'Does not equal',
headerFilterOperatorDoesNotEqual: 'Nerovná se',
headerFilterOperatorStartsWith: 'Začíná na',
headerFilterOperatorEndsWith: 'Končí na',
headerFilterOperatorIs: 'Je',
Expand All @@ -121,7 +122,7 @@ const csCZGrid: Partial<GridLocaleText> = {
'headerFilterOperator>=': 'Větší než nebo rovno',
'headerFilterOperator<': 'Menší než',
'headerFilterOperator<=': 'Menší než nebo rovno',
// headerFilterClear: 'Clear filter',
headerFilterClear: 'Zrušit filtr',

// Filter values text
filterValueAny: 'jakýkoliv',
Expand All @@ -130,7 +131,7 @@ const csCZGrid: Partial<GridLocaleText> = {

// Column menu text
columnMenuLabel: 'Menu',
// columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
columnMenuAriaLabel: (columnName: string) => `Možnosti sloupce ${columnName}`,
columnMenuShowColumns: 'Zobrazit sloupce',
columnMenuManageColumns: 'Spravovat sloupce',
columnMenuFilter: 'Filtr',
Expand Down Expand Up @@ -213,18 +214,14 @@ const csCZGrid: Partial<GridLocaleText> = {

// Pagination
paginationRowsPerPage: 'Řádků na stránce:',
// paginationDisplayedRows: ({
// from,
// to,
// count,
// estimated
// }) => {
// if (!estimated) {
// return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
// }
// const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
// return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;
// },
paginationDisplayedRows: ({ from, to, count, estimated }) => {
if (!estimated) {
return `${from}–${to} z ${count !== -1 ? count : `více než ${to}`}`;
}
const estimatedLabel =
estimated && estimated > to ? `přibližně ${estimated}` : `více než ${to}`;
return `${from}–${to} z ${count !== -1 ? count : estimatedLabel}`;
},
paginationItemAriaLabel: (type) => {
if (type === 'first') {
return 'Jít na první stránku';
Expand Down
59 changes: 28 additions & 31 deletions packages/x-data-grid/src/locales/skSK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const skSKGrid: Partial<GridLocaleText> = {
// Root
noRowsLabel: 'Žiadne záznamy',
noResultsOverlayLabel: 'Nenašli sa žadne výsledky.',
// noColumnsOverlayLabel: 'No columns',
// noColumnsOverlayManageColumns: 'Manage columns',
noColumnsOverlayLabel: 'Žiadne stĺpce',
noColumnsOverlayManageColumns: 'Spravovať stĺpce',

// Density selector toolbar button text
toolbarDensity: 'Hustota',
Expand Down Expand Up @@ -40,15 +40,16 @@ const skSKGrid: Partial<GridLocaleText> = {
toolbarQuickFilterDeleteIconLabel: 'Vymazať',

// Prompt toolbar field
// toolbarPromptControlPlaceholder: 'Type a prompt…',
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
// toolbarPromptControlLabel: 'Prompt input',
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
// toolbarPromptControlSendActionLabel: 'Send',
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
toolbarPromptControlPlaceholder: 'Zadajte požiadavku…',
toolbarPromptControlWithRecordingPlaceholder: 'Zadajte alebo nahrajte požiadavku…',
toolbarPromptControlRecordingPlaceholder: 'Počúvam požiadavku…',
toolbarPromptControlLabel: 'Vstup požiadavky',
toolbarPromptControlRecordButtonDefaultLabel: 'Nahrávať',
toolbarPromptControlRecordButtonActiveLabel: 'Zastaviť nahrávanie',
toolbarPromptControlSendActionLabel: 'Odoslať',
toolbarPromptControlSendActionAriaLabel: 'Odoslať požiadavku',
toolbarPromptControlErrorMessage:
'Pri spracovaní požiadavky došlo k chybe. Skúste to znova s inou požiadavkou.',

// Export selector toolbar button text
toolbarExport: 'Export',
Expand All @@ -61,8 +62,8 @@ const skSKGrid: Partial<GridLocaleText> = {
columnsManagementSearchTitle: 'Vyhľadať',
columnsManagementNoColumns: 'Žiadne stĺpce',
columnsManagementShowHideAllText: 'Zobraziť/Skryť všetko',
// columnsManagementReset: 'Reset',
// columnsManagementDeleteIconLabel: 'Clear',
columnsManagementReset: 'Resetovať',
columnsManagementDeleteIconLabel: 'Vymazať',

// Filter panel text
filterPanelAddFilter: 'Pridať filter',
Expand All @@ -78,9 +79,9 @@ const skSKGrid: Partial<GridLocaleText> = {

// Filter operators text
filterOperatorContains: 'obsahuje',
// filterOperatorDoesNotContain: 'does not contain',
filterOperatorDoesNotContain: 'neobsahuje',
filterOperatorEquals: 'rovná sa',
// filterOperatorDoesNotEqual: 'does not equal',
filterOperatorDoesNotEqual: 'nerovná sa',
filterOperatorStartsWith: 'začína s',
filterOperatorEndsWith: 'končí na',
filterOperatorIs: 'je',
Expand All @@ -101,9 +102,9 @@ const skSKGrid: Partial<GridLocaleText> = {

// Header filter operators text
headerFilterOperatorContains: 'Obsahuje',
// headerFilterOperatorDoesNotContain: 'Does not contain',
headerFilterOperatorDoesNotContain: 'Neobsahuje',
headerFilterOperatorEquals: 'Rovná sa',
// headerFilterOperatorDoesNotEqual: 'Does not equal',
headerFilterOperatorDoesNotEqual: 'Nerovná sa',
headerFilterOperatorStartsWith: 'Začína s',
headerFilterOperatorEndsWith: 'Končí na',
headerFilterOperatorIs: 'Je',
Expand All @@ -121,7 +122,7 @@ const skSKGrid: Partial<GridLocaleText> = {
'headerFilterOperator>=': 'Väčší ako alebo rovný',
'headerFilterOperator<': 'Menší ako',
'headerFilterOperator<=': 'Menší ako alebo rovný',
// headerFilterClear: 'Clear filter',
headerFilterClear: 'Zrušiť filter',

// Filter values text
filterValueAny: 'akýkoľvek',
Expand All @@ -130,7 +131,7 @@ const skSKGrid: Partial<GridLocaleText> = {

// Column menu text
columnMenuLabel: 'Menu',
// columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
columnMenuAriaLabel: (columnName: string) => `Ponuka stĺpca ${columnName}`,
columnMenuShowColumns: 'Zobraziť stĺpce',
columnMenuManageColumns: 'Spravovať stĺpce',
columnMenuFilter: 'Filter',
Expand Down Expand Up @@ -213,18 +214,14 @@ const skSKGrid: Partial<GridLocaleText> = {

// Pagination
paginationRowsPerPage: 'Riadkov na stránke:',
// paginationDisplayedRows: ({
// from,
// to,
// count,
// estimated
// }) => {
// if (!estimated) {
// return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
// }
// const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
// return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;
// },
paginationDisplayedRows: ({ from, to, count, estimated }) => {
if (!estimated) {
return `${from}–${to} z ${count !== -1 ? count : `viac ako ${to}`}`;
}
const estimatedLabel =
estimated && estimated > to ? `približne ${estimated}` : `viac ako ${to}`;
return `${from}–${to} z ${count !== -1 ? count : estimatedLabel}`;
},
paginationItemAriaLabel: (type) => {
if (type === 'first') {
return 'Ísť na prvú stránku';
Expand Down
Loading