From 7ef90ad2b173df4e3b3fdeb43c39c9f7d6e74bbd Mon Sep 17 00:00:00 2001 From: Rares Date: Thu, 5 Dec 2024 18:08:06 +0200 Subject: [PATCH 1/2] [l10n] Improve Romanian (ro-RO) locale (#15745) Signed-off-by: Nora <72460825+noraleonte@users.noreply.github.com> Co-authored-by: Kenan Yusuf Co-authored-by: Nora <72460825+noraleonte@users.noreply.github.com> --- docs/data/data-grid/localization/data.json | 6 ++-- docs/data/date-pickers/localization/data.json | 2 +- packages/x-data-grid/src/locales/roRO.ts | 30 +++++++++++++------ packages/x-date-pickers/src/locales/roRO.ts | 28 ++++++++--------- 4 files changed, 39 insertions(+), 27 deletions(-) diff --git a/docs/data/data-grid/localization/data.json b/docs/data/data-grid/localization/data.json index 7424e2dafcc8..e54f01919f67 100644 --- a/docs/data/data-grid/localization/data.json +++ b/docs/data/data-grid/localization/data.json @@ -211,9 +211,9 @@ "languageTag": "ro-RO", "importName": "roRO", "localeName": "Romanian", - "missingKeysCount": 9, - "totalKeysCount": 123, - "githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/locales/roRO.ts" + "missingKeysCount": 0, + "totalKeysCount": 132, + "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/roRO.ts" }, { "languageTag": "ru-RU", diff --git a/docs/data/date-pickers/localization/data.json b/docs/data/date-pickers/localization/data.json index 75901bdcb30c..27ffe6bd1766 100644 --- a/docs/data/date-pickers/localization/data.json +++ b/docs/data/date-pickers/localization/data.json @@ -227,7 +227,7 @@ "languageTag": "ro-RO", "importName": "roRO", "localeName": "Romanian", - "missingKeysCount": 14, + "missingKeysCount": 0, "totalKeysCount": 50, "githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-date-pickers/src/locales/roRO.ts" }, diff --git a/packages/x-data-grid/src/locales/roRO.ts b/packages/x-data-grid/src/locales/roRO.ts index cc49a4f52e6d..c7949fe83a72 100644 --- a/packages/x-data-grid/src/locales/roRO.ts +++ b/packages/x-data-grid/src/locales/roRO.ts @@ -31,6 +31,18 @@ const roROGrid: Partial = { toolbarQuickFilterLabel: 'Căutare', toolbarQuickFilterDeleteIconLabel: 'Ștergere', + // Prompt toolbar field + toolbarPromptControlPlaceholder: 'Scrie un prompt…', + toolbarPromptControlWithRecordingPlaceholder: 'Scrie sau înregistrează un prompt…', + toolbarPromptControlRecordingPlaceholder: 'Ascultare prompt…', + toolbarPromptControlLabel: 'Introducere prompt', + toolbarPromptControlRecordButtonDefaultLabel: 'Înregistrează', + toolbarPromptControlRecordButtonActiveLabel: 'Oprește înregistrare', + toolbarPromptControlSendActionLabel: 'Trimite', + toolbarPromptControlSendActionAriaLabel: 'Trimite prompt', + toolbarPromptControlErrorMessage: + 'A apărut o eroare la procesare. Încercați din nou cu un alt prompt.', + // Export selector toolbar button text toolbarExport: 'Export', toolbarExportLabel: 'Export', @@ -39,11 +51,11 @@ const roROGrid: Partial = { toolbarExportExcel: 'Download în format Excel', // Columns management text - // columnsManagementSearchTitle: 'Search', - // columnsManagementNoColumns: 'No columns', - // columnsManagementShowHideAllText: 'Show/Hide All', - // columnsManagementReset: 'Reset', - // columnsManagementDeleteIconLabel: 'Clear', + columnsManagementSearchTitle: 'Caută', + columnsManagementNoColumns: 'Nicio coloană', + columnsManagementShowHideAllText: 'Arată/Ascunde tot', + columnsManagementReset: 'Resetează', + columnsManagementDeleteIconLabel: 'Șterge', // Filter panel text filterPanelAddFilter: 'Adăugare filtru', @@ -59,9 +71,9 @@ const roROGrid: Partial = { // Filter operators text filterOperatorContains: 'conține', - // filterOperatorDoesNotContain: 'does not contain', + filterOperatorDoesNotContain: 'nu conține', filterOperatorEquals: 'este egal cu', - // filterOperatorDoesNotEqual: 'does not equal', + filterOperatorDoesNotEqual: 'nu este egal cu', filterOperatorStartsWith: 'începe cu', filterOperatorEndsWith: 'se termină cu', filterOperatorIs: 'este', @@ -82,9 +94,9 @@ const roROGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Conține', - // headerFilterOperatorDoesNotContain: 'Does not contain', + headerFilterOperatorDoesNotContain: 'Nu conține', headerFilterOperatorEquals: 'Egal cu', - // headerFilterOperatorDoesNotEqual: 'Does not equal', + headerFilterOperatorDoesNotEqual: 'Nu este egal cu', headerFilterOperatorStartsWith: 'Începe cu', headerFilterOperatorEndsWith: 'Se termină cu', headerFilterOperatorIs: 'Este', diff --git a/packages/x-date-pickers/src/locales/roRO.ts b/packages/x-date-pickers/src/locales/roRO.ts index 61ea968f77a9..0216fcbb02ed 100644 --- a/packages/x-date-pickers/src/locales/roRO.ts +++ b/packages/x-date-pickers/src/locales/roRO.ts @@ -26,10 +26,10 @@ const roROPickers: Partial> = { // DateRange labels start: 'Început', end: 'Sfârșit', - // startDate: 'Start date', - // startTime: 'Start time', - // endDate: 'End date', - // endTime: 'End time', + startDate: 'Data de început', + startTime: 'Ora de început', + endDate: 'Data de sfârșit', + endTime: 'Ora de sfârșit', // Action bar cancelButtonLabel: 'Anulare', @@ -78,24 +78,24 @@ const roROPickers: Partial> = { fieldYearPlaceholder: (params) => 'A'.repeat(params.digitAmount), fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'LLLL' : 'LL'), fieldDayPlaceholder: () => 'ZZ', - // fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE', + fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'ZZZZ' : 'ZZ'), fieldHoursPlaceholder: () => 'hh', fieldMinutesPlaceholder: () => 'mm', fieldSecondsPlaceholder: () => 'ss', fieldMeridiemPlaceholder: () => 'aa', // View names - // year: 'Year', - // month: 'Month', - // day: 'Day', - // weekDay: 'Week day', - // hours: 'Hours', - // minutes: 'Minutes', - // seconds: 'Seconds', - // meridiem: 'Meridiem', + year: 'An', + month: 'Luna', + day: 'Ziua', + weekDay: 'Ziua saptămânii', + hours: 'Ore', + minutes: 'Minute', + seconds: 'Secunde', + meridiem: 'Meridiem', // Common - // empty: 'Empty', + empty: 'Gol', }; export const roRO = getPickersLocalization(roROPickers); From c611b086dddbe857be8d259aa4270b3ba4584155 Mon Sep 17 00:00:00 2001 From: Lukas Tyla Date: Thu, 5 Dec 2024 18:26:02 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Signed-off-by: Lukas Tyla --- docs/data/data-grid/localization/data.json | 4 ++-- packages/x-data-grid/src/locales/roRO.ts | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/docs/data/data-grid/localization/data.json b/docs/data/data-grid/localization/data.json index e54f01919f67..03c718752c49 100644 --- a/docs/data/data-grid/localization/data.json +++ b/docs/data/data-grid/localization/data.json @@ -212,8 +212,8 @@ "importName": "roRO", "localeName": "Romanian", "missingKeysCount": 0, - "totalKeysCount": 132, - "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/roRO.ts" + "totalKeysCount": 123, + "githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/locales/roRO.ts" }, { "languageTag": "ru-RU", diff --git a/packages/x-data-grid/src/locales/roRO.ts b/packages/x-data-grid/src/locales/roRO.ts index c7949fe83a72..25a423ff10d4 100644 --- a/packages/x-data-grid/src/locales/roRO.ts +++ b/packages/x-data-grid/src/locales/roRO.ts @@ -31,18 +31,6 @@ const roROGrid: Partial = { toolbarQuickFilterLabel: 'Căutare', toolbarQuickFilterDeleteIconLabel: 'Ștergere', - // Prompt toolbar field - toolbarPromptControlPlaceholder: 'Scrie un prompt…', - toolbarPromptControlWithRecordingPlaceholder: 'Scrie sau înregistrează un prompt…', - toolbarPromptControlRecordingPlaceholder: 'Ascultare prompt…', - toolbarPromptControlLabel: 'Introducere prompt', - toolbarPromptControlRecordButtonDefaultLabel: 'Înregistrează', - toolbarPromptControlRecordButtonActiveLabel: 'Oprește înregistrare', - toolbarPromptControlSendActionLabel: 'Trimite', - toolbarPromptControlSendActionAriaLabel: 'Trimite prompt', - toolbarPromptControlErrorMessage: - 'A apărut o eroare la procesare. Încercați din nou cu un alt prompt.', - // Export selector toolbar button text toolbarExport: 'Export', toolbarExportLabel: 'Export',