From a0c7dd17cd07f75076449a3a4f01ea96816fa6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Wed, 1 Dec 2021 13:15:12 +0100 Subject: [PATCH] account creation confirmation flash message --- canaille/account.py | 1 + .../translations/fr/LC_MESSAGES/messages.mo | Bin 20250 -> 20362 bytes .../translations/fr/LC_MESSAGES/messages.po | 34 ++++++++++-------- canaille/translations/messages.pot | 32 +++++++++-------- 4 files changed, 38 insertions(+), 29 deletions(-) diff --git a/canaille/account.py b/canaille/account.py index 8f70a503..911e807d 100644 --- a/canaille/account.py +++ b/canaille/account.py @@ -266,6 +266,7 @@ def registration(data, hash): else: user = profile_create(current_app, form) user.login() + flash(_("You account has been created successfuly."), "success") return redirect(url_for("account.profile_edition", username=user.uid[0])) return render_template( diff --git a/canaille/translations/fr/LC_MESSAGES/messages.mo b/canaille/translations/fr/LC_MESSAGES/messages.mo index 975281ebda4c516d1fbb1dfb5e0dadc5a3b67bdb..da0df00dabcab40e2ef8f2e5a292f5468049e712 100644 GIT binary patch delta 3572 zcmYM#3v|zA9LMqRY{Q7$+Xee$*oN6$X9`PW<}y+a4#NC38k=oy4SyAKIk_Y$xz=`E zb7?xqQ7FSnN6`s!lv_k~aOhAb)%&yGb51+6*YiBT=l49%_xn80&zki?i#G%XF4hTI zW&E7sUqk*KsjS-nKRGqbj!~V2b%M+~)HM5;dhaLAj^lk?jE8EOrSm+awpj@Em37Rj z<9nEg#h8Qj>zcicuVa>3z<#5^m^PrEndTmejAi4TQ;{yV0H44$sDU?QH7s==#E#UD zV-fy~GqI??*>t>*1vsgJ_x=?uW`4UxK@-3Il;`_MP__}P;BE}XeXf2GTT(xURq-~a z;Ggb!yKt{P1(k`OsLZBgBlKe;z9E_4_EOM**PS&YNHz72$gidIhwR%}R0i^pEZc0< z0+*ozSnZy#ch9#w51;}%iCWMl)Ogo05KQ5od+@+Lc!bfkhedkEIs2e8F#$C|E@~@g zI~SoAz6ur47F7RJsI5AS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F@s9hb-PE5l#*bVbgH7&pZzJZExCn{4vppM-+?2I>23vHd}KNp|p z`4guxpj2g`A{u~ta46~%JjMAcso5L0YUsP3YGeT zA->Bz8hYVs)Uhc+Jy3=LJc8OhXRrs}L1ic~)K6^|#?qgRT(U*ZqZmiO5tXSnVft1w>Q5mX0ot8^D z3LjxQj-s<2J!GF-)M#x=>OYA_7Y2$@HQj;QjOD0_uAnwy&=~&%6OG!\n" "Language: fr\n" "Language-Team: French \n" @@ -47,7 +47,7 @@ msgstr "" "Un lien d'initialisation de votre mot de passe vous a été envoyé par mail. " "Vous devriez le recevoir d'ici une dizaine de minutes." -#: canaille/account.py:137 canaille/account.py:323 +#: canaille/account.py:137 canaille/account.py:324 msgid "Could not send the password initialization email" msgstr "Impossible d'envoyer le courriel d'initialisation de mot de passe." @@ -71,11 +71,15 @@ msgstr "Votre compte a déjà été créé." msgid "You are already logged in, you cannot create an account." msgstr "Vous êtes déjà connectés, vous ne pouvez pas créer de compte." -#: canaille/account.py:295 +#: canaille/account.py:269 +msgid "You account has been created successfuly." +msgstr "Votre compte utilisateur a été créé avec succès." + +#: canaille/account.py:296 msgid "User account creation succeed." msgstr "La création du compte utilisateur a réussi." -#: canaille/account.py:317 +#: canaille/account.py:318 msgid "" "A password initialization link has been sent at the user email address. It " "should be received within 10 minutes." @@ -83,7 +87,7 @@ msgstr "" "Un lien d'initialisation de mot de passe a été envoyé à l'utilisateur par " "mail. Il devrait arriver d'ici une dizaine de minutes." -#: canaille/account.py:331 +#: canaille/account.py:332 msgid "" "A password reset link has been sent at the user email address. It should be " "received within 10 minutes." @@ -91,28 +95,28 @@ msgstr "" "Un lien de réinitialisation de mot de passe a été envoyé à l'utilisateur par " "mail. Il devrait arriver d'ici une dizaine de minutes." -#: canaille/account.py:337 +#: canaille/account.py:338 msgid "Could not send the password reset email" msgstr "Impossible d'envoyer le lien de réinitialisation." -#: canaille/account.py:371 +#: canaille/account.py:372 msgid "Profile edition failed." msgstr "L'édition du profil a échoué." -#: canaille/account.py:394 +#: canaille/account.py:395 msgid "Profile updated successfuly." msgstr "Le profil a été mis à jour avec succès." -#: canaille/account.py:413 +#: canaille/account.py:414 #, python-format msgid "The user %(user)s has been sucessfuly deleted" msgstr "L'utilisateur %(user)s a bien été supprimé" -#: canaille/account.py:436 +#: canaille/account.py:437 msgid "Could not send the password reset link." msgstr "Impossible d'envoyer le lien de réinitialisation." -#: canaille/account.py:443 canaille/account.py:454 +#: canaille/account.py:444 canaille/account.py:455 msgid "" "A password reset link has been sent at your email address. You should " "receive it within 10 minutes." @@ -120,15 +124,15 @@ msgstr "" "Un lien de ré-initialisation de votre mot de passe vous a été envoyé par " "mail. Vous devriez le recevoir d'ici une dizaine de minutes." -#: canaille/account.py:460 +#: canaille/account.py:461 msgid "Could not reset your password" msgstr "Impossible de réinitialiser votre mot de passe" -#: canaille/account.py:474 +#: canaille/account.py:475 msgid "The password reset link that brought you here was invalid." msgstr "Le lien de réinitialisation qui vous a amené ici est invalide." -#: canaille/account.py:483 +#: canaille/account.py:484 msgid "Your password has been updated successfuly" msgstr "Votre mot de passe a correctement été mis à jour." diff --git a/canaille/translations/messages.pot b/canaille/translations/messages.pot index d817c05c..4fa0ac3e 100644 --- a/canaille/translations/messages.pot +++ b/canaille/translations/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2021-12-01 12:48+0100\n" +"POT-Creation-Date: 2021-12-01 13:13+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -41,7 +41,7 @@ msgid "" "should receive it within 10 minutes." msgstr "" -#: canaille/account.py:137 canaille/account.py:323 +#: canaille/account.py:137 canaille/account.py:324 msgid "Could not send the password initialization email" msgstr "" @@ -65,58 +65,62 @@ msgstr "" msgid "You are already logged in, you cannot create an account." msgstr "" -#: canaille/account.py:295 +#: canaille/account.py:269 +msgid "You account has been created successfuly." +msgstr "" + +#: canaille/account.py:296 msgid "User account creation succeed." msgstr "" -#: canaille/account.py:317 +#: canaille/account.py:318 msgid "" "A password initialization link has been sent at the user email address. " "It should be received within 10 minutes." msgstr "" -#: canaille/account.py:331 +#: canaille/account.py:332 msgid "" "A password reset link has been sent at the user email address. It should " "be received within 10 minutes." msgstr "" -#: canaille/account.py:337 +#: canaille/account.py:338 msgid "Could not send the password reset email" msgstr "" -#: canaille/account.py:371 +#: canaille/account.py:372 msgid "Profile edition failed." msgstr "" -#: canaille/account.py:394 +#: canaille/account.py:395 msgid "Profile updated successfuly." msgstr "" -#: canaille/account.py:413 +#: canaille/account.py:414 #, python-format msgid "The user %(user)s has been sucessfuly deleted" msgstr "" -#: canaille/account.py:436 +#: canaille/account.py:437 msgid "Could not send the password reset link." msgstr "" -#: canaille/account.py:443 canaille/account.py:454 +#: canaille/account.py:444 canaille/account.py:455 msgid "" "A password reset link has been sent at your email address. You should " "receive it within 10 minutes." msgstr "" -#: canaille/account.py:460 +#: canaille/account.py:461 msgid "Could not reset your password" msgstr "" -#: canaille/account.py:474 +#: canaille/account.py:475 msgid "The password reset link that brought you here was invalid." msgstr "" -#: canaille/account.py:483 +#: canaille/account.py:484 msgid "Your password has been updated successfuly" msgstr ""