diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 5bb8ab78dd6419c3f4d0b763fa2cb2ceb05a2e5a..6995955911fc9a6902d298b517ba34a5f5882c3e 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -2144,7 +2144,7 @@ class ListBoxHTMLRenderer(ListBoxRenderer): # FIXME: This part should be replaced with Page Templates. html_list = [] ui_domain = 'erp5_ui' - context_domain = 'erp5_context' + context_domain = 'erp5_content' param_dict = self.getParamDict() # Prepare format parameters. @@ -2232,10 +2232,10 @@ class ListBoxHTMLRenderer(ListBoxRenderer): if report_tree.is_open: method_id = 'foldDomain' - content = u'- <b>%s</b>' % unicode(Message(domain = ui_domain, message = report_tree.obj.getTitleOrId())) + content = u'- <b>%s</b>' % unicode(report_tree.obj.getTranslatedTitleOrId()) else: method_id = 'unfoldDomain' - content = u'+ %s' % unicode(Message(domain = ui_domain, message = report_tree.obj.getTitleOrId())) + content = u'+ %s' % unicode(report_tree.obj.getTranslatedTitleOrId()) html_list.append("""\ <td nowrap valign="top" align="left" colspan="%d"> diff --git a/product/ERP5Form/www/ListBox_asHTML.zpt b/product/ERP5Form/www/ListBox_asHTML.zpt index be4db34fc3a9b8cb98bac5b4ee0643d2855a83fe..3ae5c7b1663ff4c3a763ecb862ad242355738921 100644 --- a/product/ERP5Form/www/ListBox_asHTML.zpt +++ b/product/ERP5Form/www/ListBox_asHTML.zpt @@ -60,10 +60,10 @@ tal:attributes="colspan python: total_depth - report_tree.depth + 1"> <a href="method" tal:condition="report_tree/is_open" - tal:attributes="href string:portal_selections/foldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">- <b tal:content="report_tree/obj/getTitleOrId" i18n:translate="" i18n:domain="ui">Domain</b></a> + tal:attributes="href string:portal_selections/foldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">- <b tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</b></a> <a href="method" tal:condition="not: report_tree/is_open" - tal:attributes="href string:portal_selections/unfoldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">+ <tal:block tal:content="report_tree/obj/getTitleOrId" i18n:translate="" i18n:domain="ui">Domain</tal:block></a> + tal:attributes="href string:portal_selections/unfoldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">+ <tal:block tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</tal:block></a> </td> </tr> </table>