Fix of issue 3703.
svn: r14796
This commit is contained in:
parent
8b421dfc4c
commit
0cb50c9fc5
@ -1798,6 +1798,9 @@ def get_relationship_calculator(reinit=False):
|
|||||||
lang = locale.getdefaultlocale()[0]
|
lang = locale.getdefaultlocale()[0]
|
||||||
lang_set = False
|
lang_set = False
|
||||||
__RELCALC_CLASS = RelationshipCalculator
|
__RELCALC_CLASS = RelationshipCalculator
|
||||||
|
# If lang not set default to English relationship calulator
|
||||||
|
if not lang:
|
||||||
|
return __RELCALC_CLASS()
|
||||||
# See if lang begins with en_, English_ or english_
|
# See if lang begins with en_, English_ or english_
|
||||||
# If so return standard relationship calculator.
|
# If so return standard relationship calculator.
|
||||||
enlang = lang.split('_')[0].lower()
|
enlang = lang.split('_')[0].lower()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user