Commit e1c3b9c5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a forgotten 'lang' argument in gettext() otherwise we get wrong...

add a forgotten 'lang' argument in gettext() otherwise we get wrong translation results if we install Business Template or we reindex Site on non-English language.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29141 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea3b22bb
......@@ -84,7 +84,7 @@ for wf in context.portal_workflow.objectValues():\n
if state.title != \'\' :\n
state_var_title = \'%s_title\' % state_var\n
msg_id = getMessageIdWithContext(state.title,\'state\',wf.id)\n
translated_message = context.Localizer.erp5_ui.gettext(msg_id, default=\'\').encode(\'utf-8\')\n
translated_message = context.Localizer.erp5_ui.gettext(msg_id, default=\'\', lang=lang).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
key = (lang, state_var_title, state_id, state.title)\n
......
1303
\ No newline at end of file
1304
\ 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