From b6e1df282cb68f6002ba90832399cb580da4b6ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 1 Mar 2006 14:37:28 +0000 Subject: [PATCH] Make sure not to decode Unicode git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5876 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/patches/Localizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/patches/Localizer.py b/product/ERP5Type/patches/Localizer.py index 8f247350dc..405cfbb6c0 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): -- 2.30.9