Commit d2ac269b authored by Nicolas Delaby's avatar Nicolas Delaby

Index also translated workflow state title generated with getMessageIdWithContext

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34044 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 88fc7197
......@@ -83,11 +83,12 @@ 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 = getMessageIdWithContext(state.title,\'state\',wf.id)\n
msg_id = getMessageIdWithContext(state.title, \'state\', wf.id)\n
translated_message = context.Localizer.erp5_ui.gettext(msg_id, default=\'\', lang=lang).encode(\'utf-8\')\n
if translated_message == \'\':\n
msg_id = state.title\n
translated_message = context.Localizer.erp5_ui.gettext(state.title.decode(\'utf-8\'), lang=lang).encode(\'utf-8\')\n
key = (lang, state_var_title, state_id, state.title)\n
key = (lang, state_var_title, state_id, msg_id)\n
if not translated_keys.has_key(key):\n
translated_keys[key] = None # mark as translated\n
obj = newTempBase(context, \'temp_translation_%d\' % i,\n
......
1519
\ No newline at end of file
1528
\ No newline at end of file
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