From aacd2ae83c3e52bd873b1cec15698664becc6976 Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 10 Apr 2022 17:35:34 +0200 Subject: [PATCH] Add info about minimum password length to registration form --- includes/pages/guest_login.php | 3 ++- resources/lang/de_DE.UTF-8@kontakt/default.po | 27 +++++++++++-------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index e30ec469..69e5a57d 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -356,7 +356,8 @@ function guest_register() $enable_password || $enable_planned_arrival ? div('row', [ $enable_password ? div('col', [ - form_password('password', __('Password') . ' ' . entry_required()) + form_password('password', __('Password') . ' ' . entry_required()), + form_info('', sprintf(__('Please use at least %s characters.'), $min_password_length)), ]) : '', $enable_planned_arrival ? div('col', [ diff --git a/resources/lang/de_DE.UTF-8@kontakt/default.po b/resources/lang/de_DE.UTF-8@kontakt/default.po index 75e28a32..5dcdfa4f 100644 --- a/resources/lang/de_DE.UTF-8@kontakt/default.po +++ b/resources/lang/de_DE.UTF-8@kontakt/default.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Engelsystem\n" -"POT-Creation-Date: 2022-04-10 17:15+0200\n" -"PO-Revision-Date: 2022-04-10 17:19+0200\n" +"POT-Creation-Date: 2022-04-10 17:31+0200\n" +"PO-Revision-Date: 2022-04-10 17:34+0200\n" "Last-Translator: Luca \n" "Language-Team: \n" "Language: de_DE\n" @@ -315,7 +315,7 @@ msgstr "Credits" #: resources/views/layouts/parts/navbar.twig:39 #: resources/views/pages/login.twig:101 resources/views/pages/login.twig:105 -#: includes/pages/guest_login.php:18 includes/pages/guest_login.php:403 +#: includes/pages/guest_login.php:18 includes/pages/guest_login.php:404 msgid "Register" msgstr "Registrieren" @@ -538,7 +538,7 @@ msgid "Password" msgstr "Passwort" #: resources/views/pages/password/reset-form.twig:11 -#: includes/pages/guest_login.php:373 +#: includes/pages/guest_login.php:374 msgid "Confirm password" msgstr "Passwort wiederholen" @@ -1759,7 +1759,7 @@ msgstr "Helfer*innenliste" msgid "This user does not exist." msgstr "Benutzer existiert nicht" -#: includes/pages/admin_user.php:71 includes/pages/guest_login.php:379 +#: includes/pages/admin_user.php:71 includes/pages/guest_login.php:380 #: includes/view/User_view.php:116 msgid "Please select..." msgstr "Bitte auswählen..." @@ -1829,7 +1829,7 @@ msgstr "Deine Passwörter stimmen nicht überein." #: includes/pages/guest_login.php:145 #, php-format msgid "Your password is too short (please use at least %s characters)." -msgstr "Dein Passwort ist zu kurz. Bitte nutze mindestens %s Zeichen." +msgstr "Dein Passwort ist zu kurz. Bitte verwende mindestens %s Zeichen." #: includes/pages/guest_login.php:156 includes/pages/guest_login.php:160 #: includes/pages/user_settings.php:58 @@ -1882,23 +1882,28 @@ msgstr "" "Ich bin damit einverstanden, dass mir Benachrichtigungen per SMS zugeschickt " "werden." -#: includes/pages/guest_login.php:365 includes/view/User_view.php:68 +#: includes/pages/guest_login.php:360 +#, php-format +msgid "Please use at least %s characters." +msgstr "Bitte verwende mindestens %s Zeichen." + +#: includes/pages/guest_login.php:366 includes/view/User_view.php:68 msgid "Planned date of arrival" msgstr "Geplanter Ankunftstag" -#: includes/pages/guest_login.php:378 includes/view/User_view.php:113 +#: includes/pages/guest_login.php:379 includes/view/User_view.php:113 msgid "Shirt size" msgstr "T-Shirt-Größe" -#: includes/pages/guest_login.php:388 +#: includes/pages/guest_login.php:389 msgid "What do you want to do?" msgstr "Was möchtest du machen?" -#: includes/pages/guest_login.php:391 +#: includes/pages/guest_login.php:392 msgid "Description of job types" msgstr "Beschreibung der Aufgaben" -#: includes/pages/guest_login.php:398 +#: includes/pages/guest_login.php:399 msgid "" "Some angel types have to be confirmed later by a supporter at an " "introduction meeting. You can change your selection in the options section."