[Erp5-report] r23278 - in /erp5/trunk/bt5/erp5_base: WorkflowTemplateItem/portal_workflow/u...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Aug 29 10:48:51 CEST 2008


Author: yusei
Date: Fri Aug 29 10:48:46 2008
New Revision: 23278

URL: http://svn.erp5.org?rev=23278&view=rev
Log:
Replace N_ with translateString.

Modified:
    erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/user_account_workflow/scripts/UserAccountWorkflow_verifyUserCreationInput.xml
    erp5/trunk/bt5/erp5_base/bt/revision

Modified: erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/user_account_workflow/scripts/UserAccountWorkflow_verifyUserCreationInput.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/user_account_workflow/scripts/UserAccountWorkflow_verifyUserCreationInput.xml?rev=23278&r1=23277&r2=23278&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/user_account_workflow/scripts/UserAccountWorkflow_verifyUserCreationInput.xml (original)
+++ erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/user_account_workflow/scripts/UserAccountWorkflow_verifyUserCreationInput.xml Fri Aug 29 10:48:46 2008
@@ -66,18 +66,17 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
-from Products.ERP5Type.Message import Message\n
-N_ = lambda msg, **kwd: Message(\'erp5_ui\', msg, **kwd)\n
+from Products.ERP5Type.Message import translateString\n
 \n
 kwargs = state_change[\'kwargs\']\n
 password = kwargs[\'password\']\n
 password_confirm = kwargs[\'password_confirm\']\n
 if password != password_confirm:\n
-  raise ValidationFailed(N_(\'Passwords do not match\'))\n
+  raise ValidationFailed(translateString(\'Passwords do not match\'))\n
 \n
 reference = kwargs[\'reference\']\n
 if not reference:\n
-  raise ValidationFailed(N_(\'User ID is not specified\'))\n
+  raise ValidationFailed(translateString(\'User ID is not specified\'))\n
 </string> </value>
         </item>
         <item>
@@ -124,8 +123,7 @@
                             <string>Products.DCWorkflow.DCWorkflow</string>
                             <string>ValidationFailed</string>
                             <string>Products.ERP5Type.Message</string>
-                            <string>Message</string>
-                            <string>N_</string>
+                            <string>translateString</string>
                             <string>_getitem_</string>
                             <string>kwargs</string>
                             <string>password</string>

Modified: erp5/trunk/bt5/erp5_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/revision?rev=23278&r1=23277&r2=23278&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/revision (original)
+++ erp5/trunk/bt5/erp5_base/bt/revision Fri Aug 29 10:48:46 2008
@@ -1,1 +1,1 @@
-410
+411




More information about the Erp5-report mailing list