[FIX] web: Allow for translation of a login error message

Closes #11815
This commit is contained in:
Ludwik Trammer 2016-04-25 14:54:18 +02:00 committed by Martin Trigaux
parent dc1b8a5a51
commit 61c808b774
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
2 changed files with 7 additions and 1 deletions

View File

@ -510,7 +510,7 @@ class Home(http.Controller):
if uid is not False:
return http.redirect_with_hash(redirect)
request.uid = old_uid
values['error'] = "Wrong login/password"
values['error'] = _("Wrong login/password")
if request.env.ref('web.login', False):
return request.render('web.login', values)
else:

View File

@ -2661,6 +2661,12 @@ msgstr ""
msgid "Wk"
msgstr ""
#. module: web
#: code:addons/web/controllers/main.py:513
#, python-format
msgid "Wrong login/password"
msgstr ""
#. module: web
#. openerp-web
#: code:addons/web/static/src/xml/base.xml:565