Commit b6e1df28 authored by Jérome Perrin's avatar Jérome Perrin

Make sure not to decode Unicode


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5876 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9834f008
......@@ -67,7 +67,7 @@ def Localizer_translate(self, domain, msgid, mapping=None, *args, **kw):
if type(mapping) is type({}):
if isinstance(translated_str, unicode) :
translated_str = translated_str.encode('utf8')
return unicode(Template(translated_str).substitute(mapping), 'utf8')
return Template(translated_str).substitute(mapping)
return translated_str
def GlobalTranslationService_translate(self, domain, msgid, *args, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment