From 71a8da95af87c4edde1d4e1db38c37eb13cfec31 Mon Sep 17 00:00:00 2001 From: noraleonte <72460825+noraleonte@users.noreply.github.com> Date: Tue, 27 Jun 2023 11:01:47 +0300 Subject: [PATCH] [l10n] Improve Romanian (ro-RO) and Hungarian (hu-HU) translations (#9436) --- docs/data/data-grid/localization/data.json | 4 +- docs/data/date-pickers/localization/data.json | 2 +- packages/grid/x-data-grid/src/locales/huHU.ts | 46 ++++++------- packages/grid/x-data-grid/src/locales/roRO.ts | 66 +++++++++---------- packages/x-date-pickers/src/locales/roRO.ts | 14 ++-- 5 files changed, 66 insertions(+), 66 deletions(-) diff --git a/docs/data/data-grid/localization/data.json b/docs/data/data-grid/localization/data.json index b124ae275c2f..07895345756e 100644 --- a/docs/data/data-grid/localization/data.json +++ b/docs/data/data-grid/localization/data.json @@ -107,7 +107,7 @@ "languageTag": "hu-HU", "importName": "huHU", "localeName": "Hungarian", - "missingKeysCount": 25, + "missingKeysCount": 2, "totalKeysCount": 119, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/grid/x-data-grid/src/locales/huHU.ts" }, @@ -171,7 +171,7 @@ "languageTag": "ro-RO", "importName": "roRO", "localeName": "Romanian", - "missingKeysCount": 33, + "missingKeysCount": 0, "totalKeysCount": 119, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/grid/x-data-grid/src/locales/roRO.ts" }, diff --git a/docs/data/date-pickers/localization/data.json b/docs/data/date-pickers/localization/data.json index ba9abce97c5b..0624309e396a 100644 --- a/docs/data/date-pickers/localization/data.json +++ b/docs/data/date-pickers/localization/data.json @@ -179,7 +179,7 @@ "languageTag": "ro-RO", "importName": "roRO", "localeName": "Romanian", - "missingKeysCount": 8, + "missingKeysCount": 1, "totalKeysCount": 36, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/roRO.ts" }, diff --git a/packages/grid/x-data-grid/src/locales/huHU.ts b/packages/grid/x-data-grid/src/locales/huHU.ts index 4cf56d92e0e8..4368a4d429cb 100644 --- a/packages/grid/x-data-grid/src/locales/huHU.ts +++ b/packages/grid/x-data-grid/src/locales/huHU.ts @@ -70,33 +70,33 @@ const huHUGrid: Partial = { filterOperatorIsEmpty: 'üres', filterOperatorIsNotEmpty: 'nem üres', filterOperatorIsAnyOf: 'a következők egyike:', - // 'filterOperator=': '=', - // 'filterOperator!=': '!=', - // 'filterOperator>': '>', - // 'filterOperator>=': '>=', - // 'filterOperator<': '<', - // 'filterOperator<=': '<=', + 'filterOperator=': '=', + 'filterOperator!=': '!=', + 'filterOperator>': '>', + 'filterOperator>=': '>=', + 'filterOperator<': '<', + 'filterOperator<=': '<=', // Header filter operators text - // headerFilterOperatorContains: 'Contains', - // headerFilterOperatorEquals: 'Equals', - // headerFilterOperatorStartsWith: 'Starts with', - // headerFilterOperatorEndsWith: 'Ends with', + headerFilterOperatorContains: 'Tartalmazza:', + headerFilterOperatorEquals: 'Egyenlő ezzel:', + headerFilterOperatorStartsWith: 'Ezzel kezdődik:', + headerFilterOperatorEndsWith: 'Ezzel végződik:', // headerFilterOperatorIs: 'Is', // headerFilterOperatorNot: 'Is not', - // headerFilterOperatorAfter: 'Is after', - // headerFilterOperatorOnOrAfter: 'Is on or after', - // headerFilterOperatorBefore: 'Is before', - // headerFilterOperatorOnOrBefore: 'Is on or before', - // headerFilterOperatorIsEmpty: 'Is empty', - // headerFilterOperatorIsNotEmpty: 'Is not empty', - // headerFilterOperatorIsAnyOf: 'Is any of', - // 'headerFilterOperator=': 'Equals', - // 'headerFilterOperator!=': 'Not equals', - // 'headerFilterOperator>': 'Greater than', - // 'headerFilterOperator>=': 'Greater than or equal to', - // 'headerFilterOperator<': 'Less than', - // 'headerFilterOperator<=': 'Less than or equal to', + headerFilterOperatorAfter: 'Ezutáni:', + headerFilterOperatorOnOrAfter: 'Ekkozori vagy ezutáni:', + headerFilterOperatorBefore: 'Ezelőtti:', + headerFilterOperatorOnOrBefore: 'Ekkori vagy ezelőtti:', + headerFilterOperatorIsEmpty: 'Üres', + headerFilterOperatorIsNotEmpty: 'Nem üres', + headerFilterOperatorIsAnyOf: 'A következők egyike:', + 'headerFilterOperator=': 'Egyenlő', + 'headerFilterOperator!=': 'Nem egyenlő', + 'headerFilterOperator>': 'Nagyobb mint', + 'headerFilterOperator>=': 'Nagyobb vagy egyenlő', + 'headerFilterOperator<': 'Kissebb mint', + 'headerFilterOperator<=': 'Kissebb vagy enygenlő', // Filter values text filterValueAny: 'bármilyen', diff --git a/packages/grid/x-data-grid/src/locales/roRO.ts b/packages/grid/x-data-grid/src/locales/roRO.ts index e9dc4a136346..4a7421fdd047 100644 --- a/packages/grid/x-data-grid/src/locales/roRO.ts +++ b/packages/grid/x-data-grid/src/locales/roRO.ts @@ -47,7 +47,7 @@ const roROGrid: Partial = { // Filter panel text filterPanelAddFilter: 'Adăugare filtru', - // filterPanelRemoveAll: 'Remove all', + filterPanelRemoveAll: 'Șterge tot', filterPanelDeleteIconLabel: 'Ștergere', filterPanelLogicOperator: 'Operatori logici', filterPanelOperator: 'Operatori', @@ -71,33 +71,33 @@ const roROGrid: Partial = { filterOperatorIsEmpty: 'este gol', filterOperatorIsNotEmpty: 'nu este gol', filterOperatorIsAnyOf: 'este una din valori', - // 'filterOperator=': '=', - // 'filterOperator!=': '!=', - // 'filterOperator>': '>', - // 'filterOperator>=': '>=', - // 'filterOperator<': '<', - // 'filterOperator<=': '<=', + 'filterOperator=': '=', + 'filterOperator!=': '!=', + 'filterOperator>': '>', + 'filterOperator>=': '>=', + 'filterOperator<': '<', + 'filterOperator<=': '<=', // Header filter operators text - // headerFilterOperatorContains: 'Contains', - // headerFilterOperatorEquals: 'Equals', - // headerFilterOperatorStartsWith: 'Starts with', - // headerFilterOperatorEndsWith: 'Ends with', - // headerFilterOperatorIs: 'Is', - // headerFilterOperatorNot: 'Is not', - // headerFilterOperatorAfter: 'Is after', - // headerFilterOperatorOnOrAfter: 'Is on or after', - // headerFilterOperatorBefore: 'Is before', - // headerFilterOperatorOnOrBefore: 'Is on or before', - // headerFilterOperatorIsEmpty: 'Is empty', - // headerFilterOperatorIsNotEmpty: 'Is not empty', - // headerFilterOperatorIsAnyOf: 'Is any of', - // 'headerFilterOperator=': 'Equals', - // 'headerFilterOperator!=': 'Not equals', - // 'headerFilterOperator>': 'Greater than', - // 'headerFilterOperator>=': 'Greater than or equal to', - // 'headerFilterOperator<': 'Less than', - // 'headerFilterOperator<=': 'Less than or equal to', + headerFilterOperatorContains: 'Conține', + headerFilterOperatorEquals: 'Egal cu', + headerFilterOperatorStartsWith: 'Începe cu', + headerFilterOperatorEndsWith: 'Se termină cu', + headerFilterOperatorIs: 'Este', + headerFilterOperatorNot: 'Nu este', + headerFilterOperatorAfter: 'Este după', + headerFilterOperatorOnOrAfter: 'Este la sau „după”', + headerFilterOperatorBefore: 'Este înainte de', + headerFilterOperatorOnOrBefore: 'este la sau înainte de', + headerFilterOperatorIsEmpty: 'Este gol', + headerFilterOperatorIsNotEmpty: 'Nu este gol', + headerFilterOperatorIsAnyOf: 'Este una din valori', + 'headerFilterOperator=': 'Egal cu', + 'headerFilterOperator!=': 'Nu este egal cu', + 'headerFilterOperator>': 'Mai mare decât', + 'headerFilterOperator>=': 'Mai mare sau egal cu', + 'headerFilterOperator<': 'Mai mic decât', + 'headerFilterOperator<=': 'Mai mic sau egal cu', // Filter values text filterValueAny: 'Aleatoriu', @@ -107,7 +107,7 @@ const roROGrid: Partial = { // Column menu text columnMenuLabel: 'Meniu', columnMenuShowColumns: 'Afișează toate coloanele', - // columnMenuManageColumns: 'Manage columns', + columnMenuManageColumns: 'Gestionează coloane', columnMenuFilter: 'Filtru', columnMenuHideColumn: 'Ascunde', columnMenuUnsort: 'Dezactivare sortare', @@ -171,12 +171,12 @@ const roROGrid: Partial = { rowReorderingHeaderName: 'Reordonare rânduri', // Aggregation - // aggregationMenuItemHeader: 'Aggregation', - // aggregationFunctionLabelSum: 'sum', - // aggregationFunctionLabelAvg: 'avg', - // aggregationFunctionLabelMin: 'min', - // aggregationFunctionLabelMax: 'max', - // aggregationFunctionLabelSize: 'size', + aggregationMenuItemHeader: 'Agregare', + aggregationFunctionLabelSum: 'Sumă', + aggregationFunctionLabelAvg: 'Medie', + aggregationFunctionLabelMin: 'Minim', + aggregationFunctionLabelMax: 'Maxim', + aggregationFunctionLabelSize: 'Numărul elementelor', }; export const roRO: Localization = getGridLocalization(roROGrid, roROCore); diff --git a/packages/x-date-pickers/src/locales/roRO.ts b/packages/x-date-pickers/src/locales/roRO.ts index 76797561e873..7c24c4a6b680 100644 --- a/packages/x-date-pickers/src/locales/roRO.ts +++ b/packages/x-date-pickers/src/locales/roRO.ts @@ -74,14 +74,14 @@ const roROPickers: Partial> = { dateTableLabel: 'Selectați data', // Field section placeholders - // fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount), - // fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM', - // fieldDayPlaceholder: () => 'DD', + fieldYearPlaceholder: (params) => 'A'.repeat(params.digitAmount), + fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'LLLL' : 'LL'), + fieldDayPlaceholder: () => 'ZZ', // fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE', - // fieldHoursPlaceholder: () => 'hh', - // fieldMinutesPlaceholder: () => 'mm', - // fieldSecondsPlaceholder: () => 'ss', - // fieldMeridiemPlaceholder: () => 'aa', + fieldHoursPlaceholder: () => 'hh', + fieldMinutesPlaceholder: () => 'mm', + fieldSecondsPlaceholder: () => 'ss', + fieldMeridiemPlaceholder: () => 'aa', }; export const roRO = getPickersLocalization(roROPickers);