Fix of issue 3703.

svn: r14796
This commit is contained in:
Peter Landgren 2010-03-13 20:26:22 +00:00
parent 8b421dfc4c
commit 0cb50c9fc5

View File

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