mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #804790 (some of News categories(languages) are not translated)
This commit is contained in:
parent
980909069f
commit
500935e3fa
@ -150,7 +150,9 @@ def get_language(lang):
|
||||
global _iso639
|
||||
lang = _lcase_map.get(lang, lang)
|
||||
if lang in _extra_lang_codes:
|
||||
return _extra_lang_codes[lang]
|
||||
# The translator was not active when _extra_lang_codes was defined, so
|
||||
# re-translate
|
||||
return _(_extra_lang_codes[lang])
|
||||
ip = P('localization/iso639.pickle')
|
||||
if not os.path.exists(ip):
|
||||
return lang
|
||||
|
Loading…
x
Reference in New Issue
Block a user