[FIX]Fix warning:no translation for language en_US
bzr revid: tch@tinyerp.com-20121011090232-i0lo4eelz74seja9
This commit is contained in:
parent
6404157707
commit
2f8236bdd1
|
@ -408,7 +408,7 @@ class ir_translation(osv.osv):
|
||||||
if trans_file:
|
if trans_file:
|
||||||
_logger.info('module %s: loading translation file (%s) for language %s', module_name, lang_code, lang)
|
_logger.info('module %s: loading translation file (%s) for language %s', module_name, lang_code, lang)
|
||||||
tools.trans_load(cr, trans_file, lang, verbose=False, module_name=module_name, context=context)
|
tools.trans_load(cr, trans_file, lang, verbose=False, module_name=module_name, context=context)
|
||||||
elif lang_code != 'en':
|
elif lang_code != 'en_US':
|
||||||
_logger.warning('module %s: no translation for language %s', module_name, lang_code)
|
_logger.warning('module %s: no translation for language %s', module_name, lang_code)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue