Fix of issue 3703.

svn: r14795
This commit is contained in:
Peter Landgren 2010-03-13 20:24:33 +00:00
parent 9a119ba699
commit 32d091f2b1

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