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 @@ ...@@ -56,6 +56,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
from Products.ERP5Type.DateUtils import addToDate\n from Products.ERP5Type.DateUtils import addToDate\n
from Products.ERP5Type.Message import translateString\n
\n \n
month_added = 1\n month_added = 1\n
if frequency == \'quarterly\':\n if frequency == \'quarterly\':\n
...@@ -72,7 +73,7 @@ while date < context.getStopDate():\n ...@@ -72,7 +73,7 @@ while date < context.getStopDate():\n
period.setShortTitle(\'%s-%s\' % (date.strftime(\'%Y %m\'), (end_date - 1).strftime(\'%m\')))\n period.setShortTitle(\'%s-%s\' % (date.strftime(\'%Y %m\'), (end_date - 1).strftime(\'%m\')))\n
else:\n else:\n
period.setShortTitle(date.strftime(\'%Y-%m\'))\n period.setShortTitle(date.strftime(\'%Y-%m\'))\n
period.setTitle(date.strftime(\'%B\'))\n period.setTitle(str(translateString(date.strftime(\'%B\'))))\n
\n \n
if open_periods:\n if open_periods:\n
period.start()\n period.start()\n
...@@ -80,7 +81,7 @@ while date < context.getStopDate():\n ...@@ -80,7 +81,7 @@ while date < context.getStopDate():\n
date = end_date\n date = end_date\n
\n \n
return context.Base_redirect(form_id, \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> ]]></string> </value>
...@@ -124,6 +125,8 @@ return context.Base_redirect(form_id, \n ...@@ -124,6 +125,8 @@ return context.Base_redirect(form_id, \n
<string>form_id</string> <string>form_id</string>
<string>Products.ERP5Type.DateUtils</string> <string>Products.ERP5Type.DateUtils</string>
<string>addToDate</string> <string>addToDate</string>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>month_added</string> <string>month_added</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
...@@ -131,6 +134,7 @@ return context.Base_redirect(form_id, \n ...@@ -131,6 +134,7 @@ return context.Base_redirect(form_id, \n
<string>dict</string> <string>dict</string>
<string>end_date</string> <string>end_date</string>
<string>period</string> <string>period</string>
<string>str</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1135 1139
\ No newline at end of file \ 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