remove all language support expect zh_TW
This commit is contained in:
@ -41,7 +41,7 @@ class _Underscore(object):
|
||||
)
|
||||
for locale
|
||||
in available_locales.keys()
|
||||
if locale != 'en_US' # No translation file for en_US
|
||||
if locale != 'zh_TW' # No translation file for zh_TW
|
||||
}
|
||||
self.locale_stack = list()
|
||||
|
||||
@ -86,7 +86,7 @@ def __(singular, plural=None, n=1, multi=False):
|
||||
translations = list()
|
||||
|
||||
if not multi and len(set(_.locale_stack)) >= 1:
|
||||
translations.append(_(singular, plural, n, 'en_US'))
|
||||
translations.append(_(singular, plural, n, 'zh_TW'))
|
||||
|
||||
else:
|
||||
for locale in _.locale_stack:
|
||||
@ -110,7 +110,7 @@ def user_locale(func):
|
||||
if us and us.lang != 'en':
|
||||
_.push(us.lang)
|
||||
else:
|
||||
_.push('en_US')
|
||||
_.push('zh_TW')
|
||||
|
||||
result = func(bot, update, *pargs, **kwargs)
|
||||
_.pop()
|
||||
@ -133,7 +133,7 @@ def game_locales(func):
|
||||
if us and us.lang != 'en':
|
||||
loc = us.lang
|
||||
else:
|
||||
loc = 'en_US'
|
||||
loc = 'zh_TW'
|
||||
|
||||
if loc in locales:
|
||||
continue
|
||||
|
Reference in New Issue
Block a user