mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
i18n: Use language code instead of locale.
We have been assigning locale to language code. Mostly code and locale are same but for languages like zh-Hans, locale is zh_Hans and code is zh-hans. After this commit, compilemessages command should be run.
This commit is contained in:
@@ -89,6 +89,7 @@ class Command(compilemessages.Command):
|
||||
'name': 'English',
|
||||
'name_local': 'English',
|
||||
'code': 'en',
|
||||
'locale': 'en',
|
||||
})
|
||||
continue
|
||||
|
||||
@@ -111,7 +112,8 @@ class Command(compilemessages.Command):
|
||||
|
||||
info['name'] = name
|
||||
info['name_local'] = name_local
|
||||
info['code'] = locale
|
||||
info['code'] = code
|
||||
info['locale'] = locale
|
||||
info['percent_translated'] = percentage
|
||||
data['languages'].append(info)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user