Better test for English rel calc.

svn: r14242
This commit is contained in:
Peter Landgren 2010-02-06 09:36:34 +00:00
parent a1f8f6142d
commit f62432f5e7

View File

@ -1801,7 +1801,8 @@ def get_relationship_calculator(reinit=False):
# See if lang begins with en_, English_ or english_
# If so return standard relationship calculator.
enlang = lang.split('_')[0].lower()
if ('en' in enlang) or ('english' in enlang):
print enlang
if ('en' == enlang) or ('english' == enlang):
return __RELCALC_CLASS()
# set correct non English relationship calculator based on LANG
# or on locale.getlocale() or if that fails locale.getdeafultlocale()