Commit 3f6ffd17 authored by Jérome Perrin's avatar Jérome Perrin

adjust some messages and fix some translations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36642 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28906f86
......@@ -72,9 +72,9 @@
%(cancel_url, \n
active_knowledge_pad.getRelativeUrl(), mode);"\n
title="Add gadgets"\n
i18n:translate="" \n
i18n:domain="ui"\n
id="add-gadgets"> <span>Add gadgets</span></a>\n
i18n:attributes="title"\n
id="add-gadgets"><span i18n:translate="">Add gadgets</span></a>\n
</tal:block>\n
\n
<tal:block metal:define-macro="stick">\n
......
......@@ -72,15 +72,15 @@ if len(uids):\n
knowledge_box.setSpecialiseValue(gadget)\n
knowledge_box.visible()\n
else:\n
not_added_gadgets_mesage = "You already have such gadget(s)."\n
msg = \'Added\'\n
not_added_gadgets_mesage = "You already have such gadgets."\n
msg = \'Gadget added.\'\n
else:\n
msg = \'Nothing to add\'\n
msg = \'Nothing to add.\'\n
\n
if not_added_gadgets_mesage is not None:\n
msg = not_added_gadgets_mesage\n
\n
translated_msg = context.Base_translateString(msg)\n
translated_msg = context.Base_translateString(msg)\n
if cancel_url is not None:\n
cancel_url = \'%s?portal_status_message=%s\' %(cancel_url,translated_msg)\n
context.REQUEST.RESPONSE.redirect(cancel_url)\n
......
527
\ No newline at end of file
528
\ 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