Skip to content

Commit

Permalink
[l10n] Improve Romanian (ro-RO) and Hungarian (hu-HU) translations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
noraleonte authored Jun 27, 2023
1 parent 904079d commit 71a8da9
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 66 deletions.
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 @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
46 changes: 23 additions & 23 deletions packages/grid/x-data-grid/src/locales/huHU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,33 @@ const huHUGrid: Partial<GridLocaleText> = {
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',
Expand Down
66 changes: 33 additions & 33 deletions packages/grid/x-data-grid/src/locales/roRO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const roROGrid: Partial<GridLocaleText> = {

// Filter panel text
filterPanelAddFilter: 'Adăugare filtru',
// filterPanelRemoveAll: 'Remove all',
filterPanelRemoveAll: 'Șterge tot',
filterPanelDeleteIconLabel: 'Ștergere',
filterPanelLogicOperator: 'Operatori logici',
filterPanelOperator: 'Operatori',
Expand All @@ -71,33 +71,33 @@ const roROGrid: Partial<GridLocaleText> = {
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',
Expand All @@ -107,7 +107,7 @@ const roROGrid: Partial<GridLocaleText> = {
// Column menu text
columnMenuLabel: 'Meniu',
columnMenuShowColumns: 'Afișează toate coloanele',
// columnMenuManageColumns: 'Manage columns',
columnMenuManageColumns: 'Gestionează coloane',
columnMenuFilter: 'Filtru',
columnMenuHideColumn: 'Ascunde',
columnMenuUnsort: 'Dezactivare sortare',
Expand Down Expand Up @@ -171,12 +171,12 @@ const roROGrid: Partial<GridLocaleText> = {
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);
14 changes: 7 additions & 7 deletions packages/x-date-pickers/src/locales/roRO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ const roROPickers: Partial<PickersLocaleText<any>> = {
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);

0 comments on commit 71a8da9

Please sign in to comment.