diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml index 677441cdda4cabfbba6470b4f5e954876f001763..1c9848d42552059dfbf3a28b6788f9f9e04fedf7 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml @@ -97,7 +97,7 @@ for wf in context.portal_workflow.objectValues():\n # translate state title as well\n if state.title != \'\' :\n state_var_title = \'%s_title\' % state_var\n - translated_message = context.Localizer.erp5_ui.gettext(state.title, lang=lang).encode(\'utf-8\')\n + translated_message = context.Localizer.erp5_ui.gettext(state.title.decode(\'utf-8\'), lang=lang).encode(\'utf-8\')\n key = (lang, state_var_title, translated_message)\n if not translated_keys.has_key(key):\n translated_keys[key] = None # mark as translated\n