Commit c1c4a3b2 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Fix message when login already exists

we don't want hardcoded "admin"... Also translate it as expected.
parent d179db1ae832
......@@ -61,3 +61,6 @@ msgstr "register"
msgid "please copy the letters from the image"
msgstr ""
msgid "the value \"{}\" is already used, use another one"
msgstr ""
......@@ -84,3 +84,6 @@ msgstr "s'enregistrer"
msgid "please copy the letters from the image"
msgstr "veuillez copier les lettres de l'image."
msgid "the value \"{}\" is already used, use another one"
msgstr "\"{}\" est déja utilisée, saisissez une autre valeur"
......@@ -164,7 +164,7 @@ class RegistrationConfirmController(controller.Controller):
err.errors.pop('', None)
err.errors.pop('login', None)
err.errors['login-subject'] = _(
'the value "admin" is already used, use another one')
'the value "{}" is already used, use another one').format(login)
err.entity = None
# XXX TEMPORARY HACK to allow registration links to work more than
# once. This is required because some email clients (e.g. kmail)
......
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