Commit 179ce645 authored by Yusei Tahara's avatar Yusei Tahara

Fix i18n text and indentation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23432 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 709b1fb0
...@@ -79,33 +79,38 @@ module = getattr(context, module_id, None)\n ...@@ -79,33 +79,38 @@ module = getattr(context, module_id, None)\n
if module is not None:\n if module is not None:\n
allowed_type_list = module.getVisibleAllowedContentTypeList()\n allowed_type_list = module.getVisibleAllowedContentTypeList()\n
if portal_type not in allowed_type_list:\n if portal_type not in allowed_type_list:\n
return context.Base_redirect(keep_items={\'portal_status_message\':\n return context.Base_redirect(\n
keep_items={\'portal_status_message\':\n
translateString("You are not allowed to create this object.")})\n translateString("You are not allowed to create this object.")})\n
else:\n else:\n
module = context\n module = context\n
if (portal_type not in embedded_portal_type_list) and \\\n if ((portal_type not in embedded_portal_type_list) and\n
(context.Base_checkPermission(context.getRelativeUrl(), \'Add portal content\')) :\n (context.Base_checkPermission(context.getRelativeUrl(),\n
return context.Base_redirect(keep_items={\'portal_status_message\':\n \'Add portal content\'))):\n
return context.Base_redirect(\n
keep_items={\'portal_status_message\':\n
translateString("You are not allowed to create this object.")})\n translateString("You are not allowed to create this object.")})\n
\n \n
\n \n
document = module.newContent( portal_type = portal_type,\n document = module.newContent( portal_type=portal_type,\n
description = description,\n description=description,\n
title=title)\n title=title)\n
\n \n
# XXX If DMS exist?\n # XXX If DMS exist?\n
document.edit( follow_up = context.getRelativeUrl(),\n document.edit(follow_up=context.getRelativeUrl(),\n
version = version,\n version=version,\n
short_title = short_title,\n short_title=short_title,\n
language = language,\n language=language,\n
reference = reference)\n reference=reference)\n
\n \n
if file.filename not in [\'\', None]:\n if file.filename not in [\'\', None]:\n
document.setFile(file)\n document.setFile(file)\n
\n \n
message = translateString(\'${portal_type} created successfully.\',\n
mapping={\'portal_type\':document.getTranslatedPortalType()})\n
return context.REQUEST.RESPONSE.redirect(\n return context.REQUEST.RESPONSE.redirect(\n
\'%s/view?portal_status_message=%s+%s.\'%(document.absolute_url(), \n \'%s/view?portal_status_message=%s\' % (document.absolute_url(), message)\n
document.getTranslatedPortalType(), translateString(\'+created+successfully.\')))\n )\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -174,6 +179,7 @@ return context.REQUEST.RESPONSE.redirect(\n ...@@ -174,6 +179,7 @@ return context.REQUEST.RESPONSE.redirect(\n
<string>module</string> <string>module</string>
<string>allowed_type_list</string> <string>allowed_type_list</string>
<string>document</string> <string>document</string>
<string>message</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
414 416
\ 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