Commit a543b364 authored by Jérome Perrin's avatar Jérome Perrin

add missing translations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33858 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2dc7d146
......@@ -56,6 +56,7 @@
<value> <string encoding="cdata"><![CDATA[
from Products.ERP5Type.DateUtils import addToDate\n
from Products.ERP5Type.Message import translateString\n
\n
month_added = 1\n
if frequency == \'quarterly\':\n
......@@ -72,7 +73,7 @@ while date < context.getStopDate():\n
period.setShortTitle(\'%s-%s\' % (date.strftime(\'%Y %m\'), (end_date - 1).strftime(\'%m\')))\n
else:\n
period.setShortTitle(date.strftime(\'%Y-%m\'))\n
period.setTitle(date.strftime(\'%B\'))\n
period.setTitle(str(translateString(date.strftime(\'%B\'))))\n
\n
if open_periods:\n
period.start()\n
......@@ -80,7 +81,7 @@ while date < context.getStopDate():\n
date = end_date\n
\n
return context.Base_redirect(form_id, \n
keep_items=dict(portal_status_message=\'Accounting periods created.\'))\n
keep_items=dict(portal_status_message=translateString(\'Accounting periods created.\')))\n
]]></string> </value>
......@@ -124,6 +125,8 @@ return context.Base_redirect(form_id, \n
<string>form_id</string>
<string>Products.ERP5Type.DateUtils</string>
<string>addToDate</string>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>month_added</string>
<string>_getattr_</string>
<string>context</string>
......@@ -131,6 +134,7 @@ return context.Base_redirect(form_id, \n
<string>dict</string>
<string>end_date</string>
<string>period</string>
<string>str</string>
</tuple>
</value>
</item>
......
1135
\ No newline at end of file
1139
\ 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