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 fdb2d9dde612ebd682a35487d73a417bd5d66296..e9e2bee58485cf1d3d3002d32f7312ede5dc874f 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 @@ -54,7 +54,7 @@ <item> <key> <string>_body</string> </key> <value> <string>from Products.ERP5Type.Document import newTempBase\n -from Products.ERP5Type.Utils import getTranslationStringWithContext\n +from Products.ERP5Type.Utils import getMessageIdWithContext\n \n supported_languages = context.Localizer.get_supported_languages()\n translated_keys = {} # This dict prevents entering the same key twice\n @@ -83,7 +83,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 - msg_id = msg_id = \'%s [state in %s]\' % (state.title, wf.id)\n + msg_id = getMessageIdWithContext(state.title,\'state\',wf.id)\n translated_message = context.Localizer.erp5_ui.gettext(msg_id, default=\'\').encode(\'utf-8\')\n if translated_message == \'\':\n translated_message = context.Localizer.erp5_ui.gettext(state.title.decode(\'utf-8\'), lang=lang).encode(\'utf-8\')\n @@ -164,7 +164,7 @@ return printed\n <string>Products.ERP5Type.Document</string> <string>newTempBase</string> <string>Products.ERP5Type.Utils</string> - <string>getTranslationStringWithContext</string> + <string>getMessageIdWithContext</string> <string>_getattr_</string> <string>context</string> <string>supported_languages</string> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index a2998a8b4a2933c91cb764a96e7da62984c6a245..4ee16cc34185c955b5579fe0dbdf00bad2fa7b21 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1120 \ No newline at end of file +1122 \ No newline at end of file