Profile settings: Fix shiftinfo email text

This commit is contained in:
Igor Scheller 2023-05-11 16:31:07 +02:00 committed by Michael Weimann
parent fa95bca673
commit 2e26f41964
4 changed files with 4 additions and 10 deletions

View File

@ -435,7 +435,7 @@ function guest_register()
form_checkbox( form_checkbox(
'email_shiftinfo', 'email_shiftinfo',
__( __(
'The %s is allowed to send me an email (e.g. when my shifts change)', 'settings.profile.email_shiftinfo',
[config('app_name')] [config('app_name')]
), ),
$email_shiftinfo $email_shiftinfo

View File

@ -1067,9 +1067,6 @@ msgstr ""
"Mit diesem Formular registrierst Du Dich als Engel. Du bekommst ein Konto in " "Mit diesem Formular registrierst Du Dich als Engel. Du bekommst ein Konto in "
"der Engel-Aufgabenverwaltung." "der Engel-Aufgabenverwaltung."
msgid "The %s is allowed to send me an email (e.g. when my shifts change)"
msgstr "Das %s darf mir E-Mails senden (z.B. wenn sich meine Schichten ändern)"
msgid "Notify me of new news" msgid "Notify me of new news"
msgstr "Benachrichtige mich bei neuen News" msgstr "Benachrichtige mich bei neuen News"

View File

@ -1339,8 +1339,7 @@ msgstr ""
#: includes/pages/guest_login.php:229 includes/view/User_view.php:50 #: includes/pages/guest_login.php:229 includes/view/User_view.php:50
#, php-format #, php-format
msgid "" msgid "settings.profile.email_shiftinfo"
"The %s is allowed to send me an email (e.g. when my shifts change)"
msgstr "" msgstr ""
"Permito que o %s me envie emails (por exemplo, quando meus turnos " "Permito que o %s me envie emails (por exemplo, quando meus turnos "
"mudam)" "mudam)"

View File

@ -109,9 +109,8 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
{{ f.checkbox('email_shiftinfo', __('settings.profile.email_shiftinfo'), { {{ f.checkbox('email_shiftinfo', __('settings.profile.email_shiftinfo', [config('app_name')]), {
'checked': [config('app_name')], 'checked': user.settings.email_shiftinfo,
'value': user.settings.email_shiftinfo,
}) }} }) }}
{{ f.checkbox('email_news', __('settings.profile.email_news'), { {{ f.checkbox('email_news', __('settings.profile.email_news'), {
'checked': user.settings.email_news, 'checked': user.settings.email_news,
@ -129,7 +128,6 @@
%} %}
{{ f.checkbox('email_goody', email_goody_label, { {{ f.checkbox('email_goody', email_goody_label, {
'checked': user.settings.email_goody, 'checked': user.settings.email_goody,
'value': user.settings.email_goody,
'raw_label': true, 'raw_label': true,
}) }} }) }}
{% endif %} {% endif %}