From 00cf83e28b792126f41e0790ade9ec2f1bd7019c Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Thu, 10 Mar 2016 16:01:26 -0500 Subject: [PATCH 1/2] Updated gridMenu section. The translations are from professional translators. --- src/js/i18n/da.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/js/i18n/da.js b/src/js/i18n/da.js index 4ed678f627..602749ec26 100644 --- a/src/js/i18n/da.js +++ b/src/js/i18n/da.js @@ -39,14 +39,14 @@ max: 'max: ' }, gridMenu: { - columns: 'Columns:', - importerTitle: 'Import file', - exporterAllAsCsv: 'Export all data as csv', - exporterVisibleAsCsv: 'Export visible data as csv', - exporterSelectedAsCsv: 'Export selected data as csv', - exporterAllAsPdf: 'Export all data as pdf', - exporterVisibleAsPdf: 'Export visible data as pdf', - exporterSelectedAsPdf: 'Export selected data as pdf', + columns: 'Kolonner:', + importerTitle: 'Importer fil', + exporterAllAsCsv: 'Eksporter alle data som csv', + exporterVisibleAsCsv: 'Eksporter synlige data som csv', + exporterSelectedAsCsv: 'Eksporter markerede data som csv', + exporterAllAsPdf: 'Eksporter alle data som pdf', + exporterVisibleAsPdf: 'Eksporter synlige data som pdf', + exporterSelectedAsPdf: 'Eksporter markerede data som pdf', clearAllFilters: 'Clear all filters' }, importer: { From b8771056cdb8b53654b799385a9f107f5c585284 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Thu, 10 Mar 2016 16:09:52 -0500 Subject: [PATCH 2/2] Added Norwegian. Only translated part of gridMenu section. Done by professional translators. --- src/js/i18n/no.js | 106 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 src/js/i18n/no.js diff --git a/src/js/i18n/no.js b/src/js/i18n/no.js new file mode 100644 index 0000000000..8d2ff478f8 --- /dev/null +++ b/src/js/i18n/no.js @@ -0,0 +1,106 @@ +(function () { + angular.module('ui.grid').config(['$provide', function($provide) { + $provide.decorator('i18nService', ['$delegate', function($delegate) { + $delegate.add('no', { + headerCell: { + aria: { + defaultFilterLabel: 'Filter for column', + removeFilter: 'Remove Filter', + columnMenuButtonLabel: 'Column Menu' + }, + priority: 'Priority:', + filterLabel: "Filter for column: " + }, + aggregate: { + label: 'items' + }, + groupPanel: { + description: 'Drag a column header here and drop it to group by that column.' + }, + search: { + placeholder: 'Search...', + showingItems: 'Showing Items:', + selectedItems: 'Selected Items:', + totalItems: 'Total Items:', + size: 'Page Size:', + first: 'First Page', + next: 'Next Page', + previous: 'Previous Page', + last: 'Last Page' + }, + menu: { + text: 'Choose Columns:' + }, + sort: { + ascending: 'Sort Ascending', + descending: 'Sort Descending', + none: 'Sort None', + remove: 'Remove Sort' + }, + column: { + hide: 'Hide Column' + }, + aggregation: { + count: 'total rows: ', + sum: 'total: ', + avg: 'avg: ', + min: 'min: ', + max: 'max: ' + }, + pinning: { + pinLeft: 'Pin Left', + pinRight: 'Pin Right', + unpin: 'Unpin' + }, + columnMenu: { + close: 'Close' + }, + gridMenu: { + aria: { + buttonLabel: 'Grid Menu' + }, + columns: 'Kolonner:', + importerTitle: 'Importer fil', + exporterAllAsCsv: 'Eksporter alle data som csv', + exporterVisibleAsCsv: 'Eksporter synlige data som csv', + exporterSelectedAsCsv: 'Eksporter utvalgte data som csv', + exporterAllAsPdf: 'Eksporter alle data som pdf', + exporterVisibleAsPdf: 'Eksporter synlige data som pdf', + exporterSelectedAsPdf: 'Eksporter utvalgte data som pdf', + clearAllFilters: 'Clear all filters' + }, + importer: { + noHeaders: 'Column names were unable to be derived, does the file have a header?', + noObjects: 'Objects were not able to be derived, was there data in the file other than headers?', + invalidCsv: 'File was unable to be processed, is it valid CSV?', + invalidJson: 'File was unable to be processed, is it valid Json?', + jsonNotArray: 'Imported json file must contain an array, aborting.' + }, + pagination: { + aria: { + pageToFirst: 'Page to first', + pageBack: 'Page back', + pageSelected: 'Selected page', + pageForward: 'Page forward', + pageToLast: 'Page to last' + }, + sizes: 'items per page', + totalItems: 'items', + through: 'through', + of: 'of' + }, + grouping: { + group: 'Group', + ungroup: 'Ungroup', + aggregate_count: 'Agg: Count', + aggregate_sum: 'Agg: Sum', + aggregate_max: 'Agg: Max', + aggregate_min: 'Agg: Min', + aggregate_avg: 'Agg: Avg', + aggregate_remove: 'Agg: Remove' + } + }); + return $delegate; + }]); + }]); +})();