Commit 296a1980 authored by Yusei Tahara's avatar Yusei Tahara

Use variable name Base_translateString instead of translate.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23493 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2af948e1
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -69,7 +66,7 @@ ...@@ -69,7 +66,7 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># Return a list of translated strings corresponding to errors for this movement validity\n <value> <string># Return a list of translated strings corresponding to errors for this movement validity\n
translate = context.Base_translateString\n Base_translateString = context.Base_translateString\n
\n \n
def translateString(msg):\n def translateString(msg):\n
try:\n try:\n
...@@ -82,12 +79,12 @@ def translateString(msg):\n ...@@ -82,12 +79,12 @@ def translateString(msg):\n
translate_kw = {\'catalog\':\'content\'}\n translate_kw = {\'catalog\':\'content\'}\n
if mapping is not None:\n if mapping is not None:\n
translate_kw[\'mapping\'] = mapping\n translate_kw[\'mapping\'] = mapping\n
return translate(msg, **translate_kw)\n return Base_translateString(msg, **translate_kw)\n
\n \n
\n \n
error_list = context.checkImmobilisationConsistency(to_translate=1)\n error_list = context.checkImmobilisationConsistency(to_translate=1)\n
if len(error_list) == 0:\n if len(error_list) == 0:\n
return [translate(\'Valid\', \'content\')]\n return [Base_translateString(\'Valid\')]\n
\n \n
translated_list = []\n translated_list = []\n
for error in error_list:\n for error in error_list:\n
...@@ -147,7 +144,7 @@ return translated_list\n ...@@ -147,7 +144,7 @@ return translated_list\n
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>translate</string> <string>Base_translateString</string>
<string>translateString</string> <string>translateString</string>
<string>error_list</string> <string>error_list</string>
<string>len</string> <string>len</string>
...@@ -176,6 +173,12 @@ return translated_list\n ...@@ -176,6 +173,12 @@ return translated_list\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Immobilisation_getValidityErrorTranslatedList</string> </value> <value> <string>Immobilisation_getValidityErrorTranslatedList</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
148 149
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment