Skip to content

Commit

Permalink
fix a bug when locale is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Nov 12, 2017
1 parent e3107e7 commit 9f6af91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xeHentai/i18n/__init__.py
Expand Up @@ -8,7 +8,7 @@
from . import en_us as lng_fallback from . import en_us as lng_fallback


try: try:
_locale = LOCALE.lower() _locale = LOCALE.lower() if LOCALE else 'en_us'
if _locale in ('zh_cn', 'zh_sg'): if _locale in ('zh_cn', 'zh_sg'):
_locale = 'zh_hans' _locale = 'zh_hans'
elif _locale in ('zh_tw', 'zh_hk', 'zh_mo'): elif _locale in ('zh_tw', 'zh_hk', 'zh_mo'):
Expand Down

0 comments on commit 9f6af91

Please sign in to comment.