show language name in current language

This commit is contained in:
MaysWind 2019-08-20 22:01:34 +08:00
parent 612c652a2b
commit 95fc7e6b42
4 changed files with 16 additions and 1 deletions

View file

@ -284,6 +284,11 @@ server.overload=远程服务器繁忙, 无法处理当前请求.
rpc.request.parse.failed=处理 RPC 请求失败.
checksum.failed=文件校验失败.
[languages]
English=英语
Simplified Chinese=简体中文
Traditional Chinese=繁体中文
[format]
longdate=YYYY年MM月DD日 HH:mm:ss
time.millisecond={{value}} 毫秒

View file

@ -284,6 +284,11 @@ server.overload=遠端伺服器繁忙, 無法處理目前要求.
rpc.request.parse.failed=處理 RPC 要求失敗.
checksum.failed=檔案校驗失敗.
[languages]
English=英語
Simplified Chinese=簡體中文
Traditional Chinese=繁體中文
[format]
longdate=YYYY年MM月DD日 HH:mm:ss
time.millisecond={{value}} 毫秒

View file

@ -288,6 +288,11 @@
'rpc.request.parse.failed': 'Failed to parse JSON-RPC request.',
'checksum.failed': 'Checksum validation failed.'
},
'languages': {
'English': 'English',
'Simplified Chinese': 'Simplified Chinese',
'Traditional Chinese': 'Traditional Chinese'
},
'format': {
'longdate': 'MM/DD/YYYY HH:mm:ss',
'time.millisecond': '{{value}} Millisecond',

View file

@ -33,7 +33,7 @@
</div>
<div class="setting-value col-sm-8">
<select class="form-control" style="width: 100%;" ng-model="context.settings.language"
ng-options="type as language.displayName for (type, language) in context.languages"
ng-options="type as (((('languages.' + language.name) | translate) !== ('languages.' + language.name) ? (('languages.' + language.name) | translate) : language.name) + ' (' + language.displayName + ')') for (type, language) in context.languages"
ng-change="setLanguage(context.settings.language)">
</select>
</div>