Browse Source

Change to "Chinese Simplified" (zh-CN) only

master
YFdyh000 10 years ago
parent
commit
2e4e130dca
  1. 6
      js/interface_localization.js
  2. 2
      options.html

6
js/interface_localization.js

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
// uses Polyglot.js ( https://github.com/airbnb/polyglot.js ) to translate interface
// translators: add your language code here such as "es" for Spanish, "ru" for Russian
var knownLanguages = ["en","es","nl","it","fr","ru","de","zh","ja","pt-BR","tr","uk","cs"];
var knownLanguages = ["en","es","nl","it","fr","ru","de","zh-CN","ja","pt-BR","tr","uk","cs"];
if( $.Options.getOption('locLang','auto') == 'auto'){
// detect language with JavaScript
@ -845,8 +845,8 @@ if(preferredLanguage == "uk"){ @@ -845,8 +845,8 @@ if(preferredLanguage == "uk"){
};
}
if(preferredLanguage == "zh"){
polyglot.locale("zh");
if(preferredLanguage == "zh-CN"){
polyglot.locale("zh-CN");
wordset = {
"Actions ▼": "操作 ▼",
"Active DHT nodes:": "活动的DHT节点: ",

2
options.html

@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
<select name="" id="language">
<option value="auto">Auto</option>
<option value="pt-BR">Brazilian Portuguese</option>
<option value="zh">Chinese</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="cs">Czech</option>
<option value="nl">Dutch</option>
<option value="en">English</option>

Loading…
Cancel
Save