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 Croatian (hr-HR) locale #14794

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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"
},
Expand Down
119 changes: 69 additions & 50 deletions packages/x-data-grid/src/locales/hrHR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const hrHRGrid: Partial<GridLocaleText> = {
// 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
Expand All @@ -20,47 +20,54 @@ const hrHRGrid: Partial<GridLocaleText> = {

// 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',
Expand All @@ -69,8 +76,8 @@ const hrHRGrid: Partial<GridLocaleText> = {
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!=': '!=',
Expand All @@ -81,20 +88,20 @@ const hrHRGrid: Partial<GridLocaleText> = {

// 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',
Expand All @@ -104,30 +111,42 @@ const hrHRGrid: Partial<GridLocaleText> = {

// 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:',
Expand All @@ -137,10 +156,10 @@ const hrHRGrid: Partial<GridLocaleText> = {
`${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
Expand All @@ -156,7 +175,7 @@ const hrHRGrid: Partial<GridLocaleText> = {
unpin: 'Otkvači',

// Tree Data
treeDataGroupingHeaderName: 'Group',
treeDataGroupingHeaderName: 'Skupina',
treeDataExpand: 'vidjeti djecu',
treeDataCollapse: 'sakriti djecu',

Expand All @@ -168,7 +187,7 @@ const hrHRGrid: Partial<GridLocaleText> = {
// Master/detail
detailPanelToggle: 'Prebacivanje ploče s detaljima',
expandDetailPanel: 'Proširiti',
collapseDetailPanel: 'Kolaps',
collapseDetailPanel: 'Skupiti',

// Row reordering text
rowReorderingHeaderName: 'Promjena redoslijeda',
Expand Down