diff --git a/product/ERP5Type/patches/Localizer.py b/product/ERP5Type/patches/Localizer.py index 8f247350dceca14ec0d7b260d7a81f5efcb66f93..405cfbb6c0d671cdb35a90e6af9b8f28e4eaa52f 100755 --- a/product/ERP5Type/patches/Localizer.py +++ b/product/ERP5Type/patches/Localizer.py @@ -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):