Translation even if LANG missing or set wrong or None.
svn: r14209
This commit is contained in:
parent
9e3797a8c3
commit
2f1a8dc1ed
@ -1805,6 +1805,9 @@ def get_relationship_calculator(reinit=False):
|
|||||||
# LANG set but with non recognizable language info. Try getlocale
|
# LANG set but with non recognizable language info. Try getlocale
|
||||||
import locale
|
import locale
|
||||||
lang = locale.getlocale()[0]
|
lang = locale.getlocale()[0]
|
||||||
|
if not lang:
|
||||||
|
# if lang is empty/None
|
||||||
|
lang = locale.getdefaultlocale()[0]
|
||||||
if lang in plugin.lang_list:
|
if lang in plugin.lang_list:
|
||||||
pmgr = BasePluginManager.get_instance()
|
pmgr = BasePluginManager.get_instance()
|
||||||
# the loaded module is put in variable mod
|
# the loaded module is put in variable mod
|
||||||
|
Loading…
Reference in New Issue
Block a user