[FIX]Fix warning:no translation for language en_US

bzr revid: tch@tinyerp.com-20121011090232-i0lo4eelz74seja9
This commit is contained in:
Twinkle Christian (OpenERP) 2012-10-11 14:32:32 +05:30
parent 6404157707
commit 2f8236bdd1
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ class ir_translation(osv.osv):
if trans_file:
_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)
elif lang_code != 'en':
elif lang_code != 'en_US':
_logger.warning('module %s: no translation for language %s', module_name, lang_code)
return True