aliasing zh-cn as zh for messages (#83)
This commit is contained in:
parent
062fe0b4e7
commit
e1bc708f05
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ PROXY_LANGS = [
|
|||
"id", "is", "it", "ja", "kk",
|
||||
"lv", "mk", "nb", "nn", "ro",
|
||||
"ru", "sl", "th", "pt-br", "uk", "uz",
|
||||
"vi", "zh-tw",
|
||||
"vi", "zh-cn", "zh-tw",
|
||||
]
|
||||
|
||||
SUPPORTED_LANGS = FULL_TRANSLATION + PARTIAL_TRANSLATION
|
||||
|
|
@ -751,6 +751,8 @@ CAPTION = {
|
|||
}
|
||||
|
||||
def get_message(message_name, lang):
|
||||
if lang == 'zh-cn':
|
||||
lang = 'zh'
|
||||
if message_name not in MESSAGE:
|
||||
return ''
|
||||
message_dict = MESSAGE[message_name]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue