diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index f9ed79e7d..db3bcc4fa 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1828,7 +1828,9 @@ define([ }, loadLanguages: function(apiLangs) { - var langs = [], info; + var langs = [], info, + addlangs = [0x0804]; + _.each(apiLangs, function(lang, index, list){ lang = parseInt(lang); info = Common.util.LanguageInfo.getLocalLanguageName(lang); @@ -1837,6 +1839,17 @@ define([ tip: info[0], code: lang }); + var idx = _.indexOf(addlangs, lang); + (idx>-1) && addlangs.splice(idx, 1); + }, this); + + _.each(addlangs, function(lang, index, list){ + info = Common.util.LanguageInfo.getLocalLanguageName(lang); + langs.push({ + title: info[1], + tip: info[0], + code: lang + }); }, this); langs.sort(function(a, b){ diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 8a39ef5ab..3039589cf 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1625,7 +1625,9 @@ define([ }, loadLanguages: function(apiLangs) { - var langs = [], info; + var langs = [], info, + addlangs = [0x0804]; + _.each(apiLangs, function(lang, index, list){ lang = parseInt(lang); info = Common.util.LanguageInfo.getLocalLanguageName(lang); @@ -1634,6 +1636,17 @@ define([ tip: info[0], code: lang }); + var idx = _.indexOf(addlangs, lang); + (idx>-1) && addlangs.splice(idx, 1); + }, this); + + _.each(addlangs, function(lang, index, list){ + info = Common.util.LanguageInfo.getLocalLanguageName(lang); + langs.push({ + title: info[1], + tip: info[0], + code: lang + }); }, this); langs.sort(function(a, b){