[Erp5-report] r35737 fabien - in /experimental/bt5/erp5_credential: WorkflowTemplateItem/po...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 28 16:05:17 CEST 2010
Author: fabien
Date: Fri May 28 16:05:15 2010
New Revision: 35737
URL: http://svn.erp5.org?rev=35737&view=rev
Log:
translate the error message
Modified:
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_validation_workflow/scripts/CredentialRequest_checkLoginAvailability.xml
experimental/bt5/erp5_credential/bt/revision
Modified: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_validation_workflow/scripts/CredentialRequest_checkLoginAvailability.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_validation_workflow/scripts/CredentialRequest_checkLoginAvailability.xml?rev=35737&r1=35736&r2=35737&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_validation_workflow/scripts/CredentialRequest_checkLoginAvailability.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_validation_workflow/scripts/CredentialRequest_checkLoginAvailability.xml [utf8] Fri May 28 16:05:15 2010
@@ -54,14 +54,15 @@
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
+from Products.ERP5Type.Message import translateString\n
portal = state_change.getPortal()\n
subscription_request_object = state_change[\'object\']\n
\n
user_id = subscription_request_object.getUserId()\n
person_module = portal.getDefaultModule(\'Person\')\n
if len(person_module.searchFolder(reference=user_id)):\n
- raise ValidationFailed, \'The login "%s" is not available, please change \'\\\n
- \'it.\' % user_id\n
+ raise ValidationFailed, translateString(\'The login "${user_id}"\'\\\n
+ \'is not available, please change it.\', mapping={\'user_id\':user_id})\n
</string> </value>
</item>
<item>
@@ -101,6 +102,8 @@
<string>state_change</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
+ <string>Products.ERP5Type.Message</string>
+ <string>translateString</string>
<string>_getattr_</string>
<string>portal</string>
<string>_getitem_</string>
Modified: experimental/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/revision?rev=35737&r1=35736&r2=35737&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Fri May 28 16:05:15 2010
@@ -1,1 +1,1 @@
-17
+18
More information about the Erp5-report
mailing list