[Erp5-report] r23208 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 28 11:07:24 CEST 2008


Author: yusei
Date: Thu Aug 28 11:07:23 2008
New Revision: 23208

URL: http://svn.erp5.org?rev=23208&view=rev
Log:
2008-08-28 yusei
* Use N_ function for translation message.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateDayDomain.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateYearDomain.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateDayDomain.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateDayDomain.xml?rev=23208&r1=23207&r2=23208&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateDayDomain.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateDayDomain.xml Thu Aug 28 11:07:23 2008
@@ -73,6 +73,8 @@
 portal = context.getPortalObject()\n
 request = context.REQUEST\n
 domain_list = []\n
+\n
+N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n
 \n
 selection_name = request.get(\'selection_name\')\n
 params = portal.portal_selections.getSelectionParamsFor(selection_name, request)\n
@@ -109,13 +111,11 @@
     else:\n
       o.setProperty(\'delimiter_type\', 0)\n
 \n
-    title = Message(\'erp5_ui\',\n
-                    \'${day_name} ${date}\',\n
-                    mapping=dict(day_name=Message(\'erp5_ui\',\n
-                                                current_date.Day()),\n
-                                 date=current_date.strftime(date_format))).translate()\n
+    title = N_(\'${day_name} ${date}\',\n
+               mapping=dict(day_name=N_(current_date.Day()),\n
+                            date=current_date.strftime(date_format)))\n
     o.setProperty(\'title\', title)\n
-    tp = \'%s %s\' % (Message(domain=\'erp5_ui\', message=current_date.Day()), str(current_date))\n
+    tp = \'%s %s\' % (N_(current_date.Day()), str(current_date))\n
     o.setProperty(\'tooltip\', tp)\n
 \n
     category_list.append(o)\n
@@ -204,6 +204,7 @@
                             <string>portal</string>
                             <string>request</string>
                             <string>domain_list</string>
+                            <string>N_</string>
                             <string>selection_name</string>
                             <string>params</string>
                             <string>DateTime</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml?rev=23208&r1=23207&r2=23208&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateWeekDomain.xml Thu Aug 28 11:07:23 2008
@@ -74,6 +74,8 @@
 from Products.ERP5Type.Document import newTempBase\n
 from string import zfill\n
 \n
+N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n
+\n
 portal = context.getPortalObject()\n
 request = context.REQUEST\n
 domain_list = []\n
@@ -120,15 +122,13 @@
     else:\n
       o.setProperty(\'delimiter_type\', 0)\n
 \n
-    title = Message(\'erp5_ui\',\n
-                    \'${day_name} ${date}\',\n
-                    mapping=dict(day_name=Message(\'erp5_ui\',\n
-                                                current_date.Day()),\n
-                                 date=current_date.strftime(date_format))).translate()\n
+    title = N_(\'${day_name} ${date}\',\n
+               mapping=dict(day_name=N_(current_date.Day()),\n
+                            date=current_date.strftime(date_format)))\n
     o.setProperty(\'title\', title)\n
 \n
     # Defining ToolTip (Optional)\n
-    tp = \'%s %s\' % (Message(domain=\'erp5_ui\', message=current_date.Day()), str(current_date))\n
+    tp = \'%s %s\' % (N_(current_date.Day()), str(current_date))\n
     o.setProperty(\'tooltip\', tp)\n
 \n
     # Defining Link (Optional)\n
@@ -214,6 +214,7 @@
                             <string>newTempBase</string>
                             <string>string</string>
                             <string>zfill</string>
+                            <string>N_</string>
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>portal</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateYearDomain.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateYearDomain.xml?rev=23208&r1=23207&r2=23208&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateYearDomain.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_generateYearDomain.xml Thu Aug 28 11:07:23 2008
@@ -73,6 +73,8 @@
 from Products.ERP5Type.Message import Message\n
 from Products.ERP5Type.Document import newTempBase\n
 from string import zfill\n
+\n
+N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n
 \n
 portal = context.getPortalObject()\n
 request = context.REQUEST\n
@@ -118,11 +120,9 @@
     \n
     o.setProperty(\'relative_position\', int(current_date))\n
 \n
-    title = Message(\'erp5_ui\',\n
-                    \'${month_name} ${year}\',\n
-                    mapping=dict(month_name=Message(\'erp5_ui\',\n
-                                                current_date.Month()),\n
-                                 year=str(current_date.year()))).translate()\n
+    title = N_(\'${month_name} ${year}\',\n
+               mapping=dict(month_name=N_(current_date.Month()),\n
+                            year=str(current_date.year())))\n
     o.setProperty(\'title\', title)\n
 \n
     # Defining Link\n
@@ -209,6 +209,7 @@
                             <string>newTempBase</string>
                             <string>string</string>
                             <string>zfill</string>
+                            <string>N_</string>
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>portal</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log?rev=23208&r1=23207&r2=23208&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log Thu Aug 28 11:07:23 2008
@@ -1,3 +1,6 @@
+2008-08-28 yusei
+* Use N_ function for translation message.
+
 2008-08-11 vincentd
 * fix Base_jumpToRelatedObject to avoid a probleme with bad form_id when jumping on a single object
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=23208&r1=23207&r2=23208&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Thu Aug 28 11:07:23 2008
@@ -1,1 +1,1 @@
-941
+942




More information about the Erp5-report mailing list