diff --git a/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js b/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js index 49115ccc7..481e66c37 100644 --- a/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js +++ b/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js @@ -121,7 +121,10 @@ define([ if (this.formulasGroups && this.api) { Common.Utils.InternalSettings.set("sse-settings-func-last", Common.localStorage.getItem("sse-settings-func-last")); - this.reloadTranslations(Common.localStorage.getItem("sse-settings-func-locale") || this.appOptions.lang, true); + var deflang = (this.appOptions.lang || 'en').toLowerCase(); + if (deflang=='pt-br' || deflang=='pt_br') + deflang = 'br'; + this.reloadTranslations(Common.localStorage.getItem("sse-settings-func-locale") || deflang, true); var me = this; diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 644b573cd..ec17df144 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -897,6 +897,7 @@ define([ { value: 'lo', displayValue: this.txtLo, exampleValue: this.txtExampleEn }, { value: 'nb', displayValue: this.txtNb, exampleValue: this.txtExampleNb }, { value: 'pl', displayValue: this.txtPl, exampleValue: this.txtExamplePl }, + { value: 'br', displayValue: this.txtBrlang, exampleValue: this.txtExampleBr }, { value: 'pt', displayValue: this.txtPtlang, exampleValue: this.txtExamplePt }, { value: 'ro', displayValue: this.txtRo, exampleValue: this.txtExampleEn }, { value: 'ru', displayValue: this.txtRu, exampleValue: this.txtExampleRu }, @@ -1387,7 +1388,8 @@ define([ txtLv: 'Latvian', txtLo: 'Lao', txtNb: 'Norwegian', - txtPtlang: 'Portuguese', + txtPtlang: 'Portuguese (Portugal)', + txtBrlang: 'Portuguese (Brazil)', txtRo: 'Romanian', txtSk: 'Slovak', txtSl: 'Slovenian', @@ -1404,6 +1406,7 @@ define([ txtExampleHu: 'SZUM; MIN; MAX; DARAB', txtExampleNb: 'SUMMER; MIN; STØRST; ANTALL', txtExamplePt: 'SOMA; MÍNIMO; MÁXIMO; CONTAR', + txtExampleBr: 'SOMA; MÍNIMO; MÁXIMO; CONT.NÚM', txtExampleSv: 'SUMMA; MIN; MAX; ANTAL', txtExampleTr: 'TOPLA; MİN; MAK; BAĞ_DEĞ_SAY' diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index 7f75d064a..0ac5bf69f 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -2062,7 +2062,8 @@ "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtNl": "Dutch", "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPl": "Polish", "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPt": "Point", - "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPtlang": "Portuguese", + "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtBrlang": "Portuguese (Brazil)", + "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPtlang": "Portuguese (Portugal)", "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRo": "Romanian", "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRu": "Russian", "SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRunMacros": "Enable All",