Commit 5aa01b9f authored by Yusei Tahara's avatar Yusei Tahara

2008-09-08 yusei

* Use Base_translateString instead of translate.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23481 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5547a76
...@@ -75,13 +75,13 @@ from Products.ERP5.Document.Document import ConversionError\n ...@@ -75,13 +75,13 @@ from Products.ERP5.Document.Document import ConversionError\n
from xmlrpclib import Fault\n from xmlrpclib import Fault\n
from socket import error as SocketError\n from socket import error as SocketError\n
\n \n
translate = context.Base_translateString\n Base_translateString = context.Base_translateString\n
\n \n
# return if no file was uploaded\n # return if no file was uploaded\n
if contribute_file is None or contribute_file.filename in (\'\', None,):\n if contribute_file is None or contribute_file.filename in (\'\', None,):\n
return context.Base_redirect(\'view\',\n return context.Base_redirect(\'view\',\n
keep_items = dict(\n keep_items = dict(\n
portal_status_message = translate(\'No file was selected for contribution.\'), \n portal_status_message = Base_translateString(\'No file was selected for contribution.\'), \n
editable_mode = context.REQUEST.get(\'editable_mode\', 0)))\n editable_mode = context.REQUEST.get(\'editable_mode\', 0)))\n
\n \n
# Do some processing of parameters cause we do not use ERP5 Form here\n # Do some processing of parameters cause we do not use ERP5 Form here\n
...@@ -134,16 +134,16 @@ else:\n ...@@ -134,16 +134,16 @@ else:\n
target = context\n target = context\n
\n \n
if failure:\n if failure:\n
msg = translate(msg)\n msg = Base_translateString(msg)\n
return target.Base_redirect(\'view\',\n return target.Base_redirect(\'view\',\n
keep_items=dict(portal_status_message=msg,\n keep_items=dict(portal_status_message=msg,\n
editable_mode=0))\n editable_mode=0))\n
# successful ingestion, show appropriate message\n # successful ingestion, show appropriate message\n
if merged_content is not None and merged_content is not new_content:\n if merged_content is not None and merged_content is not new_content:\n
msg = translate(\'Document successfully updated\')\n msg = Base_translateString(\'Document successfully updated.\')\n
target = merged_content\n target = merged_content\n
else:\n else:\n
msg = translate(\'Document successfully created\')\n msg = Base_translateString(\'Document successfully created.\')\n
target = new_content\n target = new_content\n
\n \n
# Change acquisition context of document, in order to get web section layout\n # Change acquisition context of document, in order to get web section layout\n
...@@ -225,7 +225,7 @@ return target.view()\n ...@@ -225,7 +225,7 @@ return target.view()\n
<string>SocketError</string> <string>SocketError</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>translate</string> <string>Base_translateString</string>
<string>None</string> <string>None</string>
<string>dict</string> <string>dict</string>
<string>_write_</string> <string>_write_</string>
...@@ -267,6 +267,12 @@ return target.view()\n ...@@ -267,6 +267,12 @@ return target.view()\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebSite_contributeContent</string> </value> <value> <string>WebSite_contributeContent</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>
......
2008-09-08 yusei
* Use Base_translateString instead of translate.
2008-09-07 yusei 2008-09-07 yusei
* Update English messages. * Update English messages.
......
702 703
\ 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