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 Polish (pl-PL) locale #16123

Merged
merged 12 commits into from
Feb 14, 2025
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 @@ -187,7 +187,7 @@
"languageTag": "pl-PL",
"importName": "plPL",
"localeName": "Polish",
"missingKeysCount": 24,
"missingKeysCount": 2,
"totalKeysCount": 135,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/plPL.ts"
},
Expand Down
47 changes: 24 additions & 23 deletions packages/x-data-grid/src/locales/plPL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ const plPLGrid: Partial<GridLocaleText> = {
toolbarQuickFilterDeleteIconLabel: 'Wyczyść',

// 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: 'Wpisz polecenie...',
toolbarPromptControlWithRecordingPlaceholder: 'Wpisz lub nagraj polecenie...',
toolbarPromptControlRecordingPlaceholder: 'Nasłuchiwanie polecenia...',
toolbarPromptControlLabel: 'Wprowadź polecenie',
toolbarPromptControlRecordButtonDefaultLabel: 'Nagrywaj',
toolbarPromptControlRecordButtonActiveLabel: 'Zatrzymaj nagrywanie',
toolbarPromptControlSendActionLabel: 'Wyślij',
toolbarPromptControlSendActionAriaLabel: 'Wyślij polecenie',
toolbarPromptControlErrorMessage:
'Wystąpił błąd podczas przetwarzania żądania. Spróbuj ponownie z innym poleceniem.',

// Export selector toolbar button text
toolbarExport: 'Eksportuj',
Expand All @@ -55,7 +56,7 @@ const plPLGrid: Partial<GridLocaleText> = {
columnsManagementNoColumns: 'Brak kolumn',
columnsManagementShowHideAllText: 'Wyświetl/Ukryj wszystkie',
columnsManagementReset: 'Resetuj',
// columnsManagementDeleteIconLabel: 'Clear',
columnsManagementDeleteIconLabel: 'Wyczyść',

// Filter panel text
filterPanelAddFilter: 'Dodaj filtr',
Expand Down Expand Up @@ -85,12 +86,12 @@ const plPLGrid: Partial<GridLocaleText> = {
filterOperatorIsEmpty: 'jest pusty',
filterOperatorIsNotEmpty: 'nie jest pusty',
filterOperatorIsAnyOf: 'jest jednym z',
// 'filterOperator=': '=',
// 'filterOperator!=': '!=',
// 'filterOperator>': '>',
// 'filterOperator>=': '>=',
// 'filterOperator<': '<',
// 'filterOperator<=': '<=',
'filterOperator=': 'równa się',
'filterOperator!=': 'nie równa się',
'filterOperator>': 'większy niż',
'filterOperator>=': 'większy lub równy',
'filterOperator<': 'mniejszy niż',
'filterOperator<=': 'mniejszy lub równy',

// Header filter operators text
headerFilterOperatorContains: 'Zawiera',
Expand All @@ -113,8 +114,8 @@ const plPLGrid: Partial<GridLocaleText> = {
'headerFilterOperator>': 'Większy niż',
'headerFilterOperator>=': 'Większy lub równy',
'headerFilterOperator<': 'Mniejszy niż',
'headerFilterOperator<=': 'Mniejszy lub równe',
// headerFilterClear: 'Clear filter',
'headerFilterOperator<=': 'Mniejszy lub równy',
headerFilterClear: 'Wyczyść',

// Filter values text
filterValueAny: 'dowolny',
Expand Down Expand Up @@ -185,11 +186,11 @@ const plPLGrid: Partial<GridLocaleText> = {

// Aggregation
aggregationMenuItemHeader: 'Agregacja',
// aggregationFunctionLabelSum: 'sum',
// aggregationFunctionLabelAvg: 'avg',
// aggregationFunctionLabelMin: 'min',
// aggregationFunctionLabelMax: 'max',
// aggregationFunctionLabelSize: 'size',
aggregationFunctionLabelSum: 'suma',
aggregationFunctionLabelAvg: 'średnia',
aggregationFunctionLabelMin: 'minimum',
aggregationFunctionLabelMax: 'maximum',
aggregationFunctionLabelSize: 'rozmiar',
};

export const plPL: Localization = getGridLocalization(plPLGrid, plPLCore);