Commit e1980929 authored by Jérome Perrin's avatar Jérome Perrin

improve translation: translate "no X related", and default to "no...

improve translation: translate "no X related", and default to "no ${translated_portal_type} related"


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6175 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3542150
......@@ -79,8 +79,9 @@ if same_type(portal_type, \'\'):\n
\n
if len(related_list) == 0:\n
url = context.absolute_url()\n
message = N_(\'No ${portal_type} Related.\',\n
mapping = { \'portal_type\': N_(portal_type[0])})\n
message = N_(\'No %s Related\' % portal_type[0],\n
default = unicode(N_(\'No ${portal_type} Related.\',\n
mapping = { \'portal_type\': N_(portal_type[0])}), \'utf8\'))\n
\n
elif len(related_list) == 1:\n
related_object = context.restrictedTraverse(related_list[0], None)\n
......@@ -186,10 +187,10 @@ context.REQUEST[ \'RESPONSE\' ].redirect(redirect_url)\n
<string>len</string>
<string>url</string>
<string>_getitem_</string>
<string>unicode</string>
<string>message</string>
<string>None</string>
<string>related_object</string>
<string>unicode</string>
<string>related_object_list</string>
<string>path</string>
<string>obj</string>
......
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