[DE][PE] Add zh-CN (Chinese) locale (without spell checking)
This commit is contained in:
parent
e351e70bf2
commit
9bfe3b3294
|
@ -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){
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue