[SSE] Bug 30168: translate groups of functions to interface language

This commit is contained in:
Julia Radzhabova 2019-06-14 15:53:16 +03:00
parent 468ed1ef84
commit e573009589
8 changed files with 97 additions and 102 deletions

View file

@ -102,26 +102,6 @@ define([
this.syntaxLabel = $('#formula-dlg-args');
this.descLabel = $('#formula-dlg-desc');
this.translationTable = {};
var name = '', translate = '',
descriptions = ['All', 'Cube', 'Database', 'DateAndTime', 'Engineering', 'Financial', 'Information',
'Logical', 'LookupAndReference', 'Mathematic', 'Statistical', 'TextAndData', 'Last10' ];
for (var i=0; i<descriptions.length; i++) {
name = descriptions[i];
translate = 'sCategory' + name;
this.translationTable[name] = {
en: this[translate],
de: this[translate+'_de'],
ru: this[translate+'_ru'],
pl: this[translate+'_pl'],
es: this[translate+'_es'],
fr: this[translate+'_fr'],
it: this[translate+'_it']
};
}
this.fillFormulasGroups();
},
show: function () {
@ -230,10 +210,11 @@ define([
var i, groupsListItems = [], length = this.formulasGroups.length;
for (i = 0; i < length; ++i) {
if (this.formulasGroups.at(i).get('functions').length) {
var group = this.formulasGroups.at(i);
if (group.get('functions').length) {
groupsListItems.push({
value : this.formulasGroups.at(i).get('index'),
displayValue : this.translationTable[this.formulasGroups.at(i).get('name')][lang] || this.translationTable[this.formulasGroups.at(i).get('name')]['en']
value : group.get('index'),
displayValue : this['sCategory' + group.get('name')] || group.get('name')
});
}
}
@ -415,84 +396,7 @@ define([
textGroupDescription: 'Select Function Group',
textListDescription: 'Select Function',
sDescription: 'Description',
sCategoryAll_de: 'Alle',
sCategoryLast10_de: '10 zuletzt verwendete',
sCategoryCube_de: 'Cube',
sCategoryDatabase_de: 'Datenbank',
sCategoryDateAndTime_de: 'Datum und Uhrzeit',
sCategoryEngineering_de: 'Konstruktion',
sCategoryFinancial_de: 'Finanzmathematik',
sCategoryInformation_de: 'Information',
sCategoryLogical_de: 'Logisch',
sCategoryLookupAndReference_de: 'Suchen und Bezüge',
sCategoryMathematic_de: 'Mathematik und Trigonometrie',
sCategoryStatistical_de: 'Statistik',
sCategoryTextAndData_de: 'Text und Daten',
sCategoryAll_ru: 'Все',
sCategoryLast10_ru: '10 недавно использовавшихся',
sCategoryCube_ru: 'Кубические',
sCategoryDatabase_ru: 'Базы данных',
sCategoryDateAndTime_ru: 'Дата и время',
sCategoryEngineering_ru: 'Инженерные',
sCategoryFinancial_ru: 'Финансовые',
sCategoryInformation_ru: 'Информационные',
sCategoryLogical_ru: 'Логические',
sCategoryLookupAndReference_ru: 'Поиск и ссылки',
sCategoryMathematic_ru: 'Математические',
sCategoryStatistical_ru: 'Статистические',
sCategoryTextAndData_ru: 'Текст и данные',
txtTitle: 'Insert Function',
sCategoryAll_es: 'Todo',
sCategoryLast10_es: '10 últimas utilizadas',
sCategoryLogical_es: 'Lógico',
sCategoryCube_es: 'Cubo',
sCategoryDatabase_es: 'Base de Datos',
sCategoryDateAndTime_es: 'Fecha y hora',
sCategoryEngineering_es: 'Ingenería',
sCategoryFinancial_es: 'Financial',
sCategoryInformation_es: 'Información',
sCategoryLookupAndReference_es: 'Búsqueda y referencia',
sCategoryMathematic_es: 'Matemáticas y trigonometría',
sCategoryStatistical_es: 'Estadístico',
sCategoryTextAndData_es: 'Texto y datos',
sCategoryAll_fr: 'Tout',
sCategoryLast10_fr: '10 dernières utilisées',
sCategoryLogical_fr: 'Logique',
sCategoryCube_fr: 'Cube',
sCategoryDatabase_fr: 'Base de données',
sCategoryDateAndTime_fr: 'Date et heure',
sCategoryEngineering_fr: 'Ingénierie',
sCategoryFinancial_fr: 'Financier',
sCategoryInformation_fr: 'Information',
sCategoryLookupAndReference_fr: 'Recherche et référence',
sCategoryMathematic_fr: 'Maths et trigonométrie',
sCategoryStatistical_fr: 'Statistiques',
sCategoryTextAndData_fr: 'Texte et données',
sCategoryAll_pl: 'Wszystko',
sCategoryLast10_pl: '10 ostatnio używanych',
sCategoryLogical_pl: 'Logiczny',
sCategoryCube_pl: 'Sześcian',
sCategoryDatabase_pl: 'Baza danych',
sCategoryDateAndTime_pl: 'Data i czas',
sCategoryEngineering_pl: 'Inżyniera',
sCategoryFinancial_pl: 'Finansowe',
sCategoryInformation_pl: 'Informacja',
sCategoryLookupAndReference_pl: 'Wyszukiwanie i odniesienie',
sCategoryMathematic_pl: 'Matematyczne i trygonometryczne',
sCategoryStatistical_pl: 'Statystyczny',
sCategoryTextAndData_pl: 'Tekst i data',
sCategoryAll_it: 'Tutto',
sCategoryLast10_it: '10 ultime utilizzate',
sCategoryLogical_it: 'Logico',
sCategoryCube_it: 'Cubo',
sCategoryDatabase_it: 'Banca dati',
sCategoryDateAndTime_it: 'Data e ora',
sCategoryEngineering_it: 'Ingegneria',
sCategoryFinancial_it: 'Finanziario',
sCategoryInformation_it: 'Informazioni',
sCategoryLookupAndReference_it: 'Ricerca e Riferimento',
sCategoryMathematic_it: 'Matematiche e trigonometriche',
sCategoryStatistical_it: 'Statistico',
sCategoryTextAndData_it: 'Testo e dati'
txtTitle: 'Insert Function'
}, SSE.Views.FormulaDialog || {}));
});

View file

@ -1581,6 +1581,19 @@
"SSE.Views.FormulaDialog.textGroupDescription": "Funktionsgruppe auswählen",
"SSE.Views.FormulaDialog.textListDescription": "Funktion auswählen",
"SSE.Views.FormulaDialog.txtTitle": "Funktion einfügen",
"SSE.Views.FormulaDialog.sCategoryAll": "Alle",
"SSE.Views.FormulaDialog.sCategoryLast10": "10 zuletzt verwendete",
"SSE.Views.FormulaDialog.sCategoryCube": "Cube",
"SSE.Views.FormulaDialog.sCategoryDatabase": "Datenbank",
"SSE.Views.FormulaDialog.sCategoryDateAndTime": "Datum und Uhrzeit",
"SSE.Views.FormulaDialog.sCategoryEngineering": "Konstruktion",
"SSE.Views.FormulaDialog.sCategoryFinancial": "Finanzmathematik",
"SSE.Views.FormulaDialog.sCategoryInformation": "Information",
"SSE.Views.FormulaDialog.sCategoryLogical": "Logisch",
"SSE.Views.FormulaDialog.sCategoryLookupAndReference": "Suchen und Bezüge",
"SSE.Views.FormulaDialog.sCategoryMathematic": "Mathematik und Trigonometrie",
"SSE.Views.FormulaDialog.sCategoryStatistical": "Statistik",
"SSE.Views.FormulaDialog.sCategoryTextAndData": "Text und Daten",
"SSE.Views.HyperlinkSettingsDialog.cancelButtonText": "Abbrechen",
"SSE.Views.HyperlinkSettingsDialog.strDisplay": "Anzeigen",
"SSE.Views.HyperlinkSettingsDialog.strLinkTo": "Verknüpfen mit",

View file

@ -1594,6 +1594,19 @@
"SSE.Views.FormulaDialog.textGroupDescription": "Select Function Group",
"SSE.Views.FormulaDialog.textListDescription": "Select Function",
"SSE.Views.FormulaDialog.txtTitle": "Insert Function",
"SSE.Views.FormulaDialog.sCategoryAll": "All",
"SSE.Views.FormulaDialog.sCategoryLast10": "10 last used",
"SSE.Views.FormulaDialog.sCategoryLogical": "Logical",
"SSE.Views.FormulaDialog.sCategoryCube": "Cube",
"SSE.Views.FormulaDialog.sCategoryDatabase": "Database",
"SSE.Views.FormulaDialog.sCategoryDateAndTime": "Date and time",
"SSE.Views.FormulaDialog.sCategoryEngineering": "Engineering",
"SSE.Views.FormulaDialog.sCategoryFinancial": "Financial",
"SSE.Views.FormulaDialog.sCategoryInformation": "Information",
"SSE.Views.FormulaDialog.sCategoryLookupAndReference": "Lookup and reference",
"SSE.Views.FormulaDialog.sCategoryMathematic": "Math and trigonometry",
"SSE.Views.FormulaDialog.sCategoryStatistical": "Statistical",
"SSE.Views.FormulaDialog.sCategoryTextAndData": "Text and data",
"SSE.Views.GroupDialog.cancelButtonText": "Cancel",
"SSE.Views.GroupDialog.okButtonText": "Ok",
"SSE.Views.GroupDialog.textRows": "Rows",

View file

@ -1581,6 +1581,19 @@
"SSE.Views.FormulaDialog.textGroupDescription": "Seleccionar grupo de función",
"SSE.Views.FormulaDialog.textListDescription": "Seleccionar función",
"SSE.Views.FormulaDialog.txtTitle": "Insertar función",
"SSE.Views.FormulaDialog.sCategoryAll": "Todo",
"SSE.Views.FormulaDialog.sCategoryLast10": "10 últimas utilizadas",
"SSE.Views.FormulaDialog.sCategoryLogical": "Lógico",
"SSE.Views.FormulaDialog.sCategoryCube": "Cubo",
"SSE.Views.FormulaDialog.sCategoryDatabase": "Base de Datos",
"SSE.Views.FormulaDialog.sCategoryDateAndTime": "Fecha y hora",
"SSE.Views.FormulaDialog.sCategoryEngineering": "Ingenería",
"SSE.Views.FormulaDialog.sCategoryFinancial": "Financial",
"SSE.Views.FormulaDialog.sCategoryInformation": "Información",
"SSE.Views.FormulaDialog.sCategoryLookupAndReferences": "Búsqueda y referencia",
"SSE.Views.FormulaDialog.sCategoryMathematic": "Matemáticas y trigonometría",
"SSE.Views.FormulaDialog.sCategoryStatistical": "Estadístico",
"SSE.Views.FormulaDialog.sCategoryTextAndData": "Texto y datos",
"SSE.Views.HyperlinkSettingsDialog.cancelButtonText": "Cancelar",
"SSE.Views.HyperlinkSettingsDialog.strDisplay": "Mostrar",
"SSE.Views.HyperlinkSettingsDialog.strLinkTo": "Enlace a",

View file

@ -1582,6 +1582,19 @@
"SSE.Views.FormulaDialog.textGroupDescription": "Sélectionner un groupe de fonctions",
"SSE.Views.FormulaDialog.textListDescription": "Sélectionner une fonction",
"SSE.Views.FormulaDialog.txtTitle": "Insérer une fonction",
"SSE.Views.FormulaDialog.sCategoryAll": "Tout",
"SSE.Views.FormulaDialog.sCategoryLast10": "10 dernières utilisées",
"SSE.Views.FormulaDialog.sCategoryLogical": "Logique",
"SSE.Views.FormulaDialog.sCategoryCube": "Cube",
"SSE.Views.FormulaDialog.sCategoryDatabase": "Base de données",
"SSE.Views.FormulaDialog.sCategoryDateAndTime": "Date et heure",
"SSE.Views.FormulaDialog.sCategoryEngineering": "Ingénierie",
"SSE.Views.FormulaDialog.sCategoryFinancial": "Financier",
"SSE.Views.FormulaDialog.sCategoryInformation": "Information",
"SSE.Views.FormulaDialog.sCategoryLookupAndReference": "Recherche et référence",
"SSE.Views.FormulaDialog.sCategoryMathematic": "Maths et trigonométrie",
"SSE.Views.FormulaDialog.sCategoryStatistical": "Statistiques",
"SSE.Views.FormulaDialog.sCategoryTextAndData": "Texte et données",
"SSE.Views.HyperlinkSettingsDialog.cancelButtonText": "Annuler",
"SSE.Views.HyperlinkSettingsDialog.strDisplay": "Afficher",
"SSE.Views.HyperlinkSettingsDialog.strLinkTo": "Lier à",

View file

@ -1508,6 +1508,19 @@
"SSE.Views.FormulaDialog.textGroupDescription": "Seleziona gruppo di funzioni",
"SSE.Views.FormulaDialog.textListDescription": "Seleziona funzione",
"SSE.Views.FormulaDialog.txtTitle": "Inserisci funzione",
"SSE.Views.FormulaDialog.sCategoryAll": "Tutto",
"SSE.Views.FormulaDialog.sCategoryLast10": "10 ultime utilizzate",
"SSE.Views.FormulaDialog.sCategoryLogical": "Logico",
"SSE.Views.FormulaDialog.sCategoryCube": "Cubo",
"SSE.Views.FormulaDialog.sCategoryDatabase": "Banca dati",
"SSE.Views.FormulaDialog.sCategoryDateAndTime": "Data e ora",
"SSE.Views.FormulaDialog.sCategoryEngineering": "Ingegneria",
"SSE.Views.FormulaDialog.sCategoryFinancial": "Finanziario",
"SSE.Views.FormulaDialog.sCategoryInformation": "Informazioni",
"SSE.Views.FormulaDialog.sCategoryLookupAndReference": "Ricerca e Riferimento",
"SSE.Views.FormulaDialog.sCategoryMathematic": "Matematiche e trigonometriche",
"SSE.Views.FormulaDialog.sCategoryStatistical": "Statistico",
"SSE.Views.FormulaDialog.sCategoryTextAndData": "Testo e dati",
"SSE.Views.HyperlinkSettingsDialog.cancelButtonText": "Annulla",
"SSE.Views.HyperlinkSettingsDialog.strDisplay": "Visualizza",
"SSE.Views.HyperlinkSettingsDialog.strLinkTo": "Collega a",

View file

@ -1165,6 +1165,19 @@
"SSE.Views.FormulaDialog.textGroupDescription": "Wybierz grupę funkcji",
"SSE.Views.FormulaDialog.textListDescription": "Wybierz funkcję",
"SSE.Views.FormulaDialog.txtTitle": "Wstaw funkcję",
"SSE.Views.FormulaDialog.sCategoryAll": "Wszystko",
"SSE.Views.FormulaDialog.sCategoryLast10": "10 ostatnio używanych",
"SSE.Views.FormulaDialog.sCategoryLogical": "Logiczny",
"SSE.Views.FormulaDialog.sCategoryCube": "Sześcian",
"SSE.Views.FormulaDialog.sCategoryDatabase": "Baza danych",
"SSE.Views.FormulaDialog.sCategoryDateAndTime": "Data i czas",
"SSE.Views.FormulaDialog.sCategoryEngineering": "Inżyniera",
"SSE.Views.FormulaDialog.sCategoryFinancial": "Finansowe",
"SSE.Views.FormulaDialog.sCategoryInformation": "Informacja",
"SSE.Views.FormulaDialog.sCategoryLookupAndReference": "Wyszukiwanie i odniesienie",
"SSE.Views.FormulaDialog.sCategoryMathematic": "Matematyczne i trygonometryczne",
"SSE.Views.FormulaDialog.sCategoryStatistical": "Statystyczny",
"SSE.Views.FormulaDialog.sCategoryTextAndData": "Tekst i data",
"SSE.Views.HyperlinkSettingsDialog.cancelButtonText": "Anuluj",
"SSE.Views.HyperlinkSettingsDialog.strDisplay": "Pokaż",
"SSE.Views.HyperlinkSettingsDialog.strLinkTo": "Link do",

View file

@ -1582,6 +1582,19 @@
"SSE.Views.FormulaDialog.textGroupDescription": "Выберите группу функций",
"SSE.Views.FormulaDialog.textListDescription": "Выберите функцию",
"SSE.Views.FormulaDialog.txtTitle": "Вставить функцию",
"SSE.Views.FormulaDialog.sCategoryAll": "Все",
"SSE.Views.FormulaDialog.sCategoryLast10": "10 недавно использовавшихся",
"SSE.Views.FormulaDialog.sCategoryCube": "Кубические",
"SSE.Views.FormulaDialog.sCategoryDatabase": "Базы данных",
"SSE.Views.FormulaDialog.sCategoryDateAndTime": "Дата и время",
"SSE.Views.FormulaDialog.sCategoryEngineering": "Инженерные",
"SSE.Views.FormulaDialog.sCategoryFinancial": "Финансовые",
"SSE.Views.FormulaDialog.sCategoryInformation": "Информационные",
"SSE.Views.FormulaDialog.sCategoryLogical": "Логические",
"SSE.Views.FormulaDialog.sCategoryLookupAndReference": "Поиск и ссылки",
"SSE.Views.FormulaDialog.sCategoryMathematic": "Математические",
"SSE.Views.FormulaDialog.sCategoryStatistical": "Статистические",
"SSE.Views.FormulaDialog.sCategoryTextAndData": "Текст и данные",
"SSE.Views.HyperlinkSettingsDialog.cancelButtonText": "Отмена",
"SSE.Views.HyperlinkSettingsDialog.strDisplay": "Отображать",
"SSE.Views.HyperlinkSettingsDialog.strLinkTo": "Связать с",