Commit de30bca0 authored by Michal Čihař's avatar Michal Čihař

Do not create zh_TW and zh_CN from translate toolkit

Rather use zh_Hant and zh_Hans instead.

Fixes #859
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e33f5996
......@@ -739,3 +739,8 @@ LOCALE_ALIASES = {
'zh_cn': 'zh_Hans',
'zh_tw': 'zh_Hant',
}
# List of languages we do not want to import from translate-toolkit
SKIP_TRANSLATE_TOOLKIT = frozenset((
'zh_CN', 'zh_TW',
))
......@@ -241,6 +241,8 @@ class LanguageManager(models.Manager):
# Languages from ttkit
for code, props in languages.items():
if code in data.SKIP_TRANSLATE_TOOLKIT:
continue
lang, created = Language.objects.get_or_create(
code=code
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment