From beb554585150093cf9a2fd2fad03252581837058 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Thu, 28 Aug 2008 16:50:13 +0000 Subject: [PATCH] 2008-08-28 yusei * Update Base_translateString or translateString instead of N_ for translation message. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23261 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_ods_core/Base_getExportModeItemList.xml | 12 +++++------- bt5/erp5_ods_style/bt/change_log | 5 ++++- bt5/erp5_ods_style/bt/revision | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Base_getExportModeItemList.xml b/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Base_getExportModeItemList.xml index bc0339c5ec..3218fed650 100644 --- a/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Base_getExportModeItemList.xml +++ b/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Base_getExportModeItemList.xml @@ -65,14 +65,13 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>from Products.ERP5Type.Message import Message\n -N_ = lambda msg: Message(\'erp5_ui\', msg)\n + <value> <string>from Products.ERP5Type.Message import translateString\n \n return [\n (\'\', \'\'),\n - ( N_(\'List of Documents\'), \'list\'),\n - ( N_(\'Default Export of each Document\'), \'list_view\' ),\n - ( N_(\'Default Export of each Document (one sheet per view)\'), \'list_view_separate_sheet\'),\n + (translateString(\'List of Documents\'), \'list\'),\n + (translateString(\'Default Export of each Document\'), \'list_view\' ),\n + (translateString(\'Default Export of each Document (one sheet per view)\'), \'list_view_separate_sheet\'),\n ]\n </string> </value> </item> @@ -123,8 +122,7 @@ return [\n <value> <tuple> <string>Products.ERP5Type.Message</string> - <string>Message</string> - <string>N_</string> + <string>translateString</string> </tuple> </value> </item> diff --git a/bt5/erp5_ods_style/bt/change_log b/bt5/erp5_ods_style/bt/change_log index f77a39c936..f02fc46739 100644 --- a/bt5/erp5_ods_style/bt/change_log +++ b/bt5/erp5_ods_style/bt/change_log @@ -1,3 +1,6 @@ +2008-08-28 yusei +* Update Base_translateString or translateString instead of N_ for translation message. + 2008-06-26 yusei * Revise version to 5.1. @@ -31,4 +34,4 @@ Include field OOoChart in ODS style *add some style sheet 2007-06-28 jerome -initial prototype +initial prototype \ No newline at end of file diff --git a/bt5/erp5_ods_style/bt/revision b/bt5/erp5_ods_style/bt/revision index bc768da71a..5d1277e790 100644 --- a/bt5/erp5_ods_style/bt/revision +++ b/bt5/erp5_ods_style/bt/revision @@ -1 +1 @@ -146 \ No newline at end of file +147 \ No newline at end of file -- 2.30.9