Commit 7c3f2088 authored by Yusei Tahara's avatar Yusei Tahara

* Use Base_translateString or translateString instead of N_ for translation message.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23262 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent beb55458
...@@ -69,11 +69,10 @@ ...@@ -69,11 +69,10 @@
from Products.ERP5Subversion.SubversionClient import SubversionSSLTrustError\n from Products.ERP5Subversion.SubversionClient import SubversionSSLTrustError\n
from Products.ERP5Subversion.SubversionClient import SubversionLoginError\n from Products.ERP5Subversion.SubversionClient import SubversionLoginError\n
from Products.ERP5Type.Message import Message\n from Products.ERP5Type.Message import translateString\n
from ZTUtils import make_query\n from ZTUtils import make_query\n
request = container.REQUEST\n request = container.REQUEST\n
\n \n
N_ = lambda msg: Message(\'erp5_ui\', msg)\n
\n \n
# XXX: To be compatible with commit from diff view\n # XXX: To be compatible with commit from diff view\n
if same_type(added, []):\n if same_type(added, []):\n
...@@ -99,12 +98,12 @@ else:\n ...@@ -99,12 +98,12 @@ else:\n
commit_recurs = removed\n commit_recurs = removed\n
\n \n
if changelog is None :\n if changelog is None :\n
request.set(\'portal_status_message\', N_(\'Please Set a ChangeLog Message\'))\n request.set(\'portal_status_message\', translateString(\'Please Set a ChangeLog Message\'))\n
request.set(\'cancel_url\', context.absolute_url() + \'/BusinessTemplate_viewSvnStatus?do_extract=False&portal_status_message=Commit%20cancelled.\')\n request.set(\'cancel_url\', context.absolute_url() + \'/BusinessTemplate_viewSvnStatus?do_extract=False&portal_status_message=Commit%20cancelled.\')\n
return context.asContext(added=added, modified=modified, removed=removed).BusinessTemplate_viewSvnChangelog()\n return context.asContext(added=added, modified=modified, removed=removed).BusinessTemplate_viewSvnChangelog()\n
\n \n
if changelog.strip() == \'\' :\n if changelog.strip() == \'\' :\n
request.set(\'portal_status_message\', N_("Error: ChangeLog Message can\'t be Empty"))\n request.set(\'portal_status_message\', translateString("Error: ChangeLog Message can\'t be Empty"))\n
request.set(\'cancel_url\', context.absolute_url() + \'/BusinessTemplate_viewSvnStatus?do_extract=False&portal_status_message=Commit%20cancelled.\')\n request.set(\'cancel_url\', context.absolute_url() + \'/BusinessTemplate_viewSvnStatus?do_extract=False&portal_status_message=Commit%20cancelled.\')\n
return context.asContext(added=added, modified=modified, removed=removed).BusinessTemplate_viewSvnChangelog()\n return context.asContext(added=added, modified=modified, removed=removed).BusinessTemplate_viewSvnChangelog()\n
\n \n
...@@ -124,7 +123,7 @@ except SubversionLoginError, error1 :\n ...@@ -124,7 +123,7 @@ except SubversionLoginError, error1 :\n
\n \n
return request.RESPONSE.redirect(\'%s/view?%s\' % (\n return request.RESPONSE.redirect(\'%s/view?%s\' % (\n
context.absolute_url(),\n context.absolute_url(),\n
make_query(portal_status_message=N_(\'Files commited successfully\'))))\n make_query(portal_status_message=translateString(\'Files commited successfully\'))))\n
]]></string> </value> ]]></string> </value>
...@@ -178,13 +177,12 @@ return request.RESPONSE.redirect(\'%s/view?%s\' % (\n ...@@ -178,13 +177,12 @@ return request.RESPONSE.redirect(\'%s/view?%s\' % (\n
<string>SubversionSSLTrustError</string> <string>SubversionSSLTrustError</string>
<string>SubversionLoginError</string> <string>SubversionLoginError</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
<string>Message</string> <string>translateString</string>
<string>ZTUtils</string> <string>ZTUtils</string>
<string>make_query</string> <string>make_query</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>container</string> <string>container</string>
<string>request</string> <string>request</string>
<string>N_</string>
<string>same_type</string> <string>same_type</string>
<string>commit_non_recurs</string> <string>commit_non_recurs</string>
<string>_getitem_</string> <string>_getitem_</string>
...@@ -218,6 +216,12 @@ return request.RESPONSE.redirect(\'%s/view?%s\' % (\n ...@@ -218,6 +216,12 @@ return request.RESPONSE.redirect(\'%s/view?%s\' % (\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>BusinessTemplate_doSvnCommit</string> </value> <value> <string>BusinessTemplate_doSvnCommit</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-08-28 yusei 2008-08-28 yusei
* Extract translation message from tal:dfeine expression. * Extract translation message from tal:dfeine expression.
* Use Base_translateString or translateString instead of N_ for translation message.
2008-08-27 yusei 2008-08-27 yusei
* Improve pot file export. * Improve pot file export.
......
324 325
\ 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