Permalink
Browse files

fix a bug when locale is not set

  • Loading branch information...
fffonion committed Nov 12, 2017
1 parent e3107e7 commit 9f6af91c6a9328521de46f37004a9e38c29371fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 xeHentai/i18n/__init__.py
@@ -8,7 +8,7 @@
from . import en_us as lng_fallback
try:
_locale = LOCALE.lower()
_locale = LOCALE.lower() if LOCALE else 'en_us'
if _locale in ('zh_cn', 'zh_sg'):
_locale = 'zh_hans'
elif _locale in ('zh_tw', 'zh_hk', 'zh_mo'):

0 comments on commit 9f6af91

Please sign in to comment.