Better test for English rel calc.
svn: r14242
This commit is contained in:
parent
a1f8f6142d
commit
f62432f5e7
@ -1801,7 +1801,8 @@ def get_relationship_calculator(reinit=False):
|
|||||||
# 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()
|
||||||
if ('en' in enlang) or ('english' in enlang):
|
print enlang
|
||||||
|
if ('en' == enlang) or ('english' == enlang):
|
||||||
return __RELCALC_CLASS()
|
return __RELCALC_CLASS()
|
||||||
# set correct non English relationship calculator based on LANG
|
# set correct non English relationship calculator based on LANG
|
||||||
# or on locale.getlocale() or if that fails locale.getdeafultlocale()
|
# or on locale.getlocale() or if that fails locale.getdeafultlocale()
|
||||||
|
Loading…
Reference in New Issue
Block a user