From 542ee116a36bcf36b505797608f4d192cd592d72 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Mon, 7 May 2018 14:46:42 +0200 Subject: [PATCH] change account wording (#22225) --- src/authentic2/locale/fr/LC_MESSAGES/django.po | 9 ++++++--- .../templates/registration/password_change_form.html | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/authentic2/locale/fr/LC_MESSAGES/django.po b/src/authentic2/locale/fr/LC_MESSAGES/django.po index e39ea7ee..a225acde 100644 --- a/src/authentic2/locale/fr/LC_MESSAGES/django.po +++ b/src/authentic2/locale/fr/LC_MESSAGES/django.po @@ -1255,10 +1255,13 @@ msgid "" " the new password and confirm it.\n" " " msgstr "" -"Pour modifier votre mot de passe vous devez fournir votre mot de passe " -"actuel ainsi que le nouveau, puis confirmer ce dernier." +"Vous allez modifier le mot de passe de votre compte usager." -#: templates/registration/password_reset_confirm.html:21 +#: src/authentic2/templates/registration/password_change_form.html:21 +msgid "You are going to define your account password" +msgstr "Vous allez définir le mot de passe de votre compte usager." + +#: src/authentic2/templates/registration/password_reset_confirm.html:21 msgid "Password reset failed" msgstr "Ré-initialistion du mot de passe échouée" diff --git a/src/authentic2/templates/registration/password_change_form.html b/src/authentic2/templates/registration/password_change_form.html index 0093e2ad..80411b7d 100644 --- a/src/authentic2/templates/registration/password_change_form.html +++ b/src/authentic2/templates/registration/password_change_form.html @@ -13,9 +13,13 @@ {% block content %}
+ {% if user.has_usable_password %}

{% blocktrans %}To change your password you must provide your current password, then provide the new password and confirm it. {% endblocktrans %}

+ {% else %} +

{% blocktrans %}You are going to define your account password{% endblocktrans %}

+ {% endif %} {% csrf_token %} {{ form.as_p }} -- 2.17.0