kernel: fix lang in report en -> en_US
bzr revid: ced-55f535a62bcff8fd6ccccc7e252b5f4ea34682e2
This commit is contained in:
@@ -175,7 +175,7 @@ class rml_parse(object):
|
||||
# translate the RML file
|
||||
if 'lang' in self.localcontext:
|
||||
lang = self.localcontext['lang']
|
||||
if lang not in (False, 'en') and text and not text.isspace():
|
||||
if lang not in (False, 'en_US') and text and not text.isspace():
|
||||
transl_obj = self.pool.get('ir.translation')
|
||||
piece_list = self._transl_regex.split(text)
|
||||
for pn in range(len(piece_list)):
|
||||
|
||||
Reference in New Issue
Block a user