diff --git a/docs/data/data-grid/localization/data.json b/docs/data/data-grid/localization/data.json index fc5dc6e1ec11..cc8f91fdbcd7 100644 --- a/docs/data/data-grid/localization/data.json +++ b/docs/data/data-grid/localization/data.json @@ -51,7 +51,7 @@ "languageTag": "hr-HR", "importName": "hrHR", "localeName": "Croatian", - "missingKeysCount": 8, + "missingKeysCount": 0, "totalKeysCount": 122, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/hrHR.ts" }, diff --git a/packages/x-data-grid/src/locales/hrHR.ts b/packages/x-data-grid/src/locales/hrHR.ts index 3691ee737004..26493db593d9 100644 --- a/packages/x-data-grid/src/locales/hrHR.ts +++ b/packages/x-data-grid/src/locales/hrHR.ts @@ -10,8 +10,8 @@ const hrHRGrid: Partial = { // Density selector toolbar button text toolbarDensity: 'Gustoća', toolbarDensityLabel: 'Gustoća', - toolbarDensityCompact: 'Kompaktan', - toolbarDensityStandard: 'Standard', + toolbarDensityCompact: 'Kompaktno', + toolbarDensityStandard: 'Standardno', toolbarDensityComfortable: 'Udobno', // Columns selector toolbar button text @@ -20,47 +20,54 @@ const hrHRGrid: Partial = { // Filters toolbar button text toolbarFilters: 'Filteri', - toolbarFiltersLabel: 'Prikaži filtre', - toolbarFiltersTooltipHide: 'Sakrij filtre', - toolbarFiltersTooltipShow: 'Prikaži filtre', - toolbarFiltersTooltipActive: (count) => - count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`, + toolbarFiltersLabel: 'Prikaži filtere', + toolbarFiltersTooltipHide: 'Sakrij filtere', + toolbarFiltersTooltipShow: 'Prikaži filtere', + toolbarFiltersTooltipActive: (count) => { + if (count === 1) { + return `${count} aktivan filter`; + } + if (count < 5) { + return `${count} aktivna filtera`; + } + return `${count} aktivnih filtera`; + }, // Quick filter toolbar field toolbarQuickFilterPlaceholder: 'Traži…', toolbarQuickFilterLabel: 'traži', - toolbarQuickFilterDeleteIconLabel: 'Čisto', + toolbarQuickFilterDeleteIconLabel: 'Obriši', // Export selector toolbar button text toolbarExport: 'Izvoz', toolbarExportLabel: 'Izvoz', toolbarExportCSV: 'Preuzmi kao CSV', - toolbarExportPrint: 'Ispis', - toolbarExportExcel: 'Preuzmite kao Excel', + toolbarExportPrint: 'Štampaj', + toolbarExportExcel: 'Preuzmi kao Excel', // Columns management text - // columnsManagementSearchTitle: 'Search', - // columnsManagementNoColumns: 'No columns', - // columnsManagementShowHideAllText: 'Show/Hide All', - // columnsManagementReset: 'Reset', + columnsManagementSearchTitle: 'Traži', + columnsManagementNoColumns: 'Nema stupaca', + columnsManagementShowHideAllText: 'Prikaži/Sakrij sve', + columnsManagementReset: 'Ponovno namjesti', // Filter panel text - filterPanelAddFilter: 'Dodajte filter', - filterPanelRemoveAll: 'Ukloniti sve', - filterPanelDeleteIconLabel: 'Izbrisati', + filterPanelAddFilter: 'Dodaj filter', + filterPanelRemoveAll: 'Ukloni sve', + filterPanelDeleteIconLabel: 'Obriši', filterPanelLogicOperator: 'Logički operator', - filterPanelOperator: 'Operater', + filterPanelOperator: 'Operator', filterPanelOperatorAnd: 'I', filterPanelOperatorOr: 'Ili', - filterPanelColumns: 'Stupci', + filterPanelColumns: 'Stupac', filterPanelInputLabel: 'Vrijednost', - filterPanelInputPlaceholder: 'Vrijednost filtra', + filterPanelInputPlaceholder: 'Vrijednost filtera', // Filter operators text filterOperatorContains: 'sadrži', - // filterOperatorDoesNotContain: 'does not contain', - filterOperatorEquals: 'jednaki', - // filterOperatorDoesNotEqual: 'does not equal', + filterOperatorDoesNotContain: 'ne sadrži', + filterOperatorEquals: 'je jednak', + filterOperatorDoesNotEqual: 'nije jednak', filterOperatorStartsWith: 'počinje sa', filterOperatorEndsWith: 'završava sa', filterOperatorIs: 'je', @@ -69,8 +76,8 @@ const hrHRGrid: Partial = { filterOperatorOnOrAfter: 'je na ili poslije', filterOperatorBefore: 'je prije', filterOperatorOnOrBefore: 'je na ili prije', - filterOperatorIsEmpty: 'prazno je', - filterOperatorIsNotEmpty: 'nije prazna', + filterOperatorIsEmpty: 'je prazno', + filterOperatorIsNotEmpty: 'nije prazno', filterOperatorIsAnyOf: 'je bilo koji od', 'filterOperator=': '=', 'filterOperator!=': '!=', @@ -81,20 +88,20 @@ const hrHRGrid: Partial = { // Header filter operators text headerFilterOperatorContains: 'Sadrži', - // headerFilterOperatorDoesNotContain: 'Does not contain', + headerFilterOperatorDoesNotContain: 'Ne sadrži', headerFilterOperatorEquals: 'Jednako', - // headerFilterOperatorDoesNotEqual: 'Does not equal', + headerFilterOperatorDoesNotEqual: 'Nije jednako', headerFilterOperatorStartsWith: 'Počinje sa', - headerFilterOperatorEndsWith: 'Završava s', + headerFilterOperatorEndsWith: 'Završava sa', headerFilterOperatorIs: 'Je', headerFilterOperatorNot: 'Nije', headerFilterOperatorAfter: 'Je poslije', headerFilterOperatorOnOrAfter: 'Je uključeno ili poslije', - headerFilterOperatorBefore: 'Je li prije', - headerFilterOperatorOnOrBefore: 'Uključeno je ili prije', - headerFilterOperatorIsEmpty: 'Prazno je', - headerFilterOperatorIsNotEmpty: 'Nije prazna', - headerFilterOperatorIsAnyOf: 'Je li bilo koji od', + headerFilterOperatorBefore: 'Je prije', + headerFilterOperatorOnOrBefore: 'Je uključeno ili prije', + headerFilterOperatorIsEmpty: 'Je prazno', + headerFilterOperatorIsNotEmpty: 'Nije prazno', + headerFilterOperatorIsAnyOf: 'Je bilo koji od', 'headerFilterOperator=': 'Jednako', 'headerFilterOperator!=': 'Nije jednako', 'headerFilterOperator>': 'Veći od', @@ -104,30 +111,42 @@ const hrHRGrid: Partial = { // Filter values text filterValueAny: 'bilo koji', - filterValueTrue: 'pravi', - filterValueFalse: 'lažno', + filterValueTrue: 'tačno', + filterValueFalse: 'netačno', // Column menu text - columnMenuLabel: 'Jelovnik ', + columnMenuLabel: 'Izbornik', columnMenuShowColumns: 'Prikaži stupce', columnMenuManageColumns: 'Upravljanje stupcima', - columnMenuFilter: 'filtar', + columnMenuFilter: 'Filter', columnMenuHideColumn: 'Sakrij stupac', columnMenuUnsort: 'Poništi sortiranje', columnMenuSortAsc: 'Poredaj uzlazno', - columnMenuSortDesc: 'Poredaj silaznim redom', + columnMenuSortDesc: 'Poredaj silazno', // Column header text - columnHeaderFiltersTooltipActive: (count) => - count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`, - columnHeaderFiltersLabel: 'Prikaži filtre', - columnHeaderSortIconLabel: 'Vrsta', + columnHeaderFiltersTooltipActive: (count) => { + if (count === 1) { + return `${count} aktivan filter`; + } + if (count < 5) { + return `${count} aktivna filtera`; + } + return `${count} aktivnih filtera`; + }, + columnHeaderFiltersLabel: 'Prikaži filtere', + columnHeaderSortIconLabel: 'Poredaj', // Rows selected footer text - footerRowSelected: (count) => - count !== 1 - ? `Odabrano je ${count.toLocaleString()} redaka` - : `${count.toLocaleString()} redak odabran`, + footerRowSelected: (count) => { + if (count === 1) { + return `Odabran je ${count.toLocaleString()} redak`; + } + if (count < 5) { + return `Odabrana su ${count.toLocaleString()} retka`; + } + return `Odabrano je ${count.toLocaleString()} redaka`; + }, // Total row amount footer text footerTotalRows: 'Ukupno redaka:', @@ -137,10 +156,10 @@ const hrHRGrid: Partial = { `${visibleCount.toLocaleString()} od ${totalCount.toLocaleString()}`, // Checkbox selection text - checkboxSelectionHeaderName: 'Odabir potvrdnog okvira', + checkboxSelectionHeaderName: 'Odabir redaka', checkboxSelectionSelectAllRows: 'Odaberite sve retke', checkboxSelectionUnselectAllRows: 'Poništi odabir svih redaka', - checkboxSelectionSelectRow: 'Odaberite red', + checkboxSelectionSelectRow: 'Odaberite redak', checkboxSelectionUnselectRow: 'Poništi odabir retka', // Boolean cell text @@ -156,7 +175,7 @@ const hrHRGrid: Partial = { unpin: 'Otkvači', // Tree Data - treeDataGroupingHeaderName: 'Group', + treeDataGroupingHeaderName: 'Skupina', treeDataExpand: 'vidjeti djecu', treeDataCollapse: 'sakriti djecu', @@ -168,7 +187,7 @@ const hrHRGrid: Partial = { // Master/detail detailPanelToggle: 'Prebacivanje ploče s detaljima', expandDetailPanel: 'Proširiti', - collapseDetailPanel: 'Kolaps', + collapseDetailPanel: 'Skupiti', // Row reordering text rowReorderingHeaderName: 'Promjena redoslijeda',