[FIX] unicode error

lp bug: https://launchpad.net/bugs/312726 fixed

bzr revid: christophe@cobalt-20090102203105-iq3w587c5ysveqit
This commit is contained in:
Christophe Simonis 2009-01-02 21:31:05 +01:00
parent 0b14d89e15
commit eaf486c484
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ class rml_parse(object):
if len(source_string):
translated_string = transl_obj._get_source(self.cr, self.uid, self.name, 'rml', lang, source_string)
if translated_string:
piece_list[pn] = piece_list[pn].replace(source_string, translated_string.decode('utf8'))
piece_list[pn] = piece_list[pn].replace(source_string, translated_string)
text = ''.join(piece_list)
for key in res:
newtext = self._eval(key)