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

Closes #11815
This commit is contained in:
Ludwik Trammer
2016-04-25 16:03:27 +02:00
committed by Martin Trigaux
parent dc1b8a5a51
commit 61c808b774
2 changed files with 7 additions and 1 deletions
+1 -1
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:
+6
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