Fix of issue 3703.
svn: r14795
This commit is contained in:
parent
9a119ba699
commit
32d091f2b1
@ -1798,6 +1798,9 @@ def get_relationship_calculator(reinit=False):
|
||||
lang = locale.getdefaultlocale()[0]
|
||||
lang_set = False
|
||||
__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_
|
||||
# If so return standard relationship calculator.
|
||||
enlang = lang.split('_')[0].lower()
|
||||
|
Loading…
x
Reference in New Issue
Block a user