Fix #804790 (some of News categories(languages) are not translated)

This commit is contained in:
Kovid Goyal 2011-07-03 19:40:50 -06:00
parent 980909069f
commit 500935e3fa

View File

@ -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