[IMP] web_uservoice: made "feedback" button label translatable
bzr revid: odo@openerp.com-20110112163332-pthcutrnsi21p5dw
This commit is contained in:
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 6.0.0-rc2\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2011-01-11 11:16:13+0000\n"
|
||||
"PO-Revision-Date: 2011-01-11 11:16:13+0000\n"
|
||||
"POT-Creation-Date: 2011-01-12 16:15+0000\n"
|
||||
"PO-Revision-Date: 2011-01-12 16:15+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -20,3 +20,9 @@ msgstr ""
|
||||
msgid "Add uservoice button in header"
|
||||
msgstr ""
|
||||
|
||||
#. module: web_uservoice
|
||||
#: code:addons/web_uservoice/web/editors.py:72
|
||||
#, python-format
|
||||
msgid "feedback"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -67,9 +67,10 @@ class HeaderTemplateEditor(openobject.templating.TemplateEditor):
|
||||
PAT = '<ul class="tools">'
|
||||
|
||||
ul = output.index(PAT)
|
||||
output = output[:ul] + """
|
||||
<p class="logout feedback"><a href="#" onclick="UserVoice.Popin.show(uservoiceOptions); return false;"><img src="/web_uservoice/static/images/uv_favicon.png" />feedback</a></p>
|
||||
""" + output[ul:]
|
||||
output = output[:ul] + ("""
|
||||
<p class="logout feedback"><a href="#" onclick="UserVoice.Popin.show(uservoiceOptions); return false;"><img src="/web_uservoice/static/images/uv_favicon.png" />%s</a></p>
|
||||
""" % _('feedback')) + output[ul:]
|
||||
|
||||
|
||||
return output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user