From a543b3645ea577bec98cbeebb6141e702e0437be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 18 Mar 2010 12:38:08 +0000 Subject: [PATCH] add missing translations git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33858 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../AccountingPeriod_createSecondaryPeriod.xml | 8 ++++++-- bt5/erp5_accounting/bt/revision | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml index 6f2751ab7c..37a7fcd404 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml @@ -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> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 163dda977a..6a565cfaee 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1135 \ No newline at end of file +1139 \ No newline at end of file -- 2.30.9