Commit 000a00bd authored by Kevin Deldycke's avatar Kevin Deldycke

Use Localizer instead of Translation Service


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5197 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2b28bd36
......@@ -136,7 +136,7 @@ if not tree_mode :\n
result.append(\n
ReportSection( path=portal.account_module.getPhysicalPath(),\n
# FIXME translate later\n
title=portal.translation_service.translate(\'ui\', \'Trial Balance\').encode(\'utf8\'),\n
title=portal.Localizer.erp5_ui.gettext(\'Trial Balance\').encode(\'utf8\'),\n
level=1,\n
form_id=\'AccountModule_viewAccountListForTrialBalance\',\n
selection_name=\'accounting_selection\',\n
......@@ -168,7 +168,6 @@ else :\n
)\n
\n
return result\n
# vim: syntax=python\n
</string> </value>
</item>
<item>
......
......@@ -317,7 +317,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[here.translation_service.translate(\'ui\', x).encode(\'utf8\') for x in here.REQUEST.get(\'transaction_simulation_state\')]</string> </value>
<value> <string>python:[here.Localizer.erp5_ui.gettext(x).encode(\'utf8\') for x in here.REQUEST.get(\'transaction_simulation_state\')]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -317,7 +317,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[here.translation_service.translate(\'ui\', x).encode(\'utf8\') for x in here.REQUEST.get(\'transaction_simulation_state\')]</string> </value>
<value> <string>python:[here.Localizer.erp5_ui.gettext(x).encode(\'utf8\') for x in here.REQUEST.get(\'transaction_simulation_state\')]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -317,7 +317,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[here.translation_service.translate(\'ui\', x).encode(\'utf8\') for x in here.REQUEST.get(\'transaction_simulation_state\')]</string> </value>
<value> <string>python:[here.Localizer.erp5_ui.gettext(x).encode(\'utf8\') for x in here.REQUEST.get(\'transaction_simulation_state\')]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -56,7 +56,7 @@
<pagetemplate startframe=\'content\' id=\'FirstPage\'>\n
<static>\n
<infostring align="left" x="1cm" y= "29cm" size="8" font="Helvetica" color="(0,0,0)"\n
tal:content="python: here.translation_service.translate(\'ui\', \'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n
tal:content="python: here.Localizer.erp5_ui.gettext(\'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n
<infostring align="left" x="18cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n
</static>\n
<frame showBoundary=\'0\' leftpadding=\'0.1cm\' height=\'23.94cm\' width=\'17.59cm\' rightpadding=\'0.1cm\' y=\'2cm\' x=\'2cm\' nextid=\'content\' toppadding=\'0.2cm\' id=\'content\' bottompadding=\'0.5cm\'/>\n
......@@ -115,8 +115,7 @@
</tablestyle>\n
\n
</stylesheet>\n
</template>\n
</template>
]]></string> </value>
</item>
......
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