Skip to content

Commit e7edc37

Browse files
committed
Modified text in edit account page
1 parent d12ad5f commit e7edc37

File tree

3 files changed

+36
-32
lines changed

3 files changed

+36
-32
lines changed

resources/lang/de.mo

17 Bytes
Binary file not shown.

resources/lang/de.po

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: OAuth2Client\n"
4-
"POT-Creation-Date: 2025-01-25 06:32+0100\n"
5-
"PO-Revision-Date: 2025-01-25 06:33+0100\n"
4+
"POT-Creation-Date: 2025-01-25 07:24+0100\n"
5+
"PO-Revision-Date: 2025-01-25 07:26+0100\n"
66
"Last-Translator: \n"
77
"Language-Team: \n"
88
"Language: de\n"
@@ -271,30 +271,17 @@ msgid "Signed in with %s"
271271
msgstr "Angemeldet mit %s"
272272

273273
#: resources/views/edit-account-page.phtml:75
274-
msgid ""
275-
"The email address provided from the authorization provider cannot be changed"
276-
msgstr ""
277-
"Die vom Autorisierungsanbieter bereitgestellte E-Mail-Adresse kann nicht "
278-
"geändert werden"
279-
280-
#: resources/views/edit-account-page.phtml:80
281274
#, php-format
282275
msgid "This user can sign in with %s"
283276
msgstr "Dieser Benutzer kann sich mit %s anmelden"
284277

285-
#: resources/views/edit-account-page.phtml:80
286-
#: resources/views/register-page.phtml:67
278+
#: resources/views/edit-account-page.phtml:78
287279
msgid ""
288-
"The administrator might have disabled to change some of the received user "
289-
"data"
280+
"The administrator might have disabled to change the email address or the "
281+
"password"
290282
msgstr ""
291-
"Der Administrator hat möglicherweise die Änderung einiger der empfangenen "
292-
"Benutzerdaten deaktiviert"
293-
294-
#: resources/views/edit-account-page.phtml:161
295-
#: resources/views/register-page.phtml:124
296-
msgid "Password (within webtrees)"
297-
msgstr "Passwort (innerhalb von webtrees)"
283+
"Der Administrator hat möglicherweise die Änderung der E-Mail-Adresse oder "
284+
"des Passworts deaktiviert"
298285

299286
#: resources/views/login-with-provider.phtml:32
300287
msgid "Request a new user account with"
@@ -348,6 +335,18 @@ msgstr ""
348335
msgid "Request account with"
349336
msgstr "Benutzerkonto anfragen mit"
350337

338+
#: resources/views/register-page.phtml:67
339+
msgid ""
340+
"The administrator might have disabled to change some of the received user "
341+
"data"
342+
msgstr ""
343+
"Der Administrator hat möglicherweise die Änderung einiger der empfangenen "
344+
"Benutzerdaten deaktiviert"
345+
346+
#: resources/views/register-page.phtml:124
347+
msgid "Password (within webtrees)"
348+
msgstr "Passwort (innerhalb von webtrees)"
349+
351350
#: resources/views/register-page.phtml:141
352351
msgid "Further registration data - Please complete and continue"
353352
msgstr "Weitere Registrierungsdaten - Bitte vervollständigen und fortsetzen"
@@ -517,6 +516,13 @@ msgstr ""
517516
"den Protokollfluss zwischen webtrees und dem Autorisierungsanbieter in den "
518517
"Website-Logs von webtrees protokolliert."
519518

519+
#~ msgid ""
520+
#~ "The email address provided from the authorization provider cannot be "
521+
#~ "changed"
522+
#~ msgstr ""
523+
#~ "Die vom Autorisierungsanbieter bereitgestellte E-Mail-Adresse kann nicht "
524+
#~ "geändert werden"
525+
520526
#~ msgid ""
521527
#~ "Mandatory user account data from the authorization provider cannot be "
522528
#~ "changed"

resources/views/edit-account-page.phtml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,16 @@ $edit_password = (!$is_oauth2_user || boolval($oauth2_client->getPreference(OAut
6868
<?= $title ?>
6969
</h2>
7070

71-
<?php if ($is_oauth2_user && $signed_in_with_provider) : ?>
72-
<div class="h4">
71+
<div class="h4">
72+
<?php if ($is_oauth2_user && $signed_in_with_provider) : ?>
7373
<?= I18N::translate('Signed in with %s', $provider->getSignInButtonLabel()) ?>
74-
<?php if (!$edit_email) : ?>
75-
<?= ' - ' . I18N::translate('The email address provided from the authorization provider cannot be changed') ?>
76-
<?php endif ?>
77-
</div>
78-
<?php elseif ($is_oauth2_user && !$signed_in_with_provider) : ?>
79-
<div class="h4">
80-
<?= I18N::translate('This user can sign in with %s', $provider->getSignInButtonLabel()) . ' - ' . I18N::translate('The administrator might have disabled to change some of the received user data') ?>
81-
</div>
82-
<?php endif ?>
74+
<?php elseif ($is_oauth2_user && !$signed_in_with_provider) : ?>
75+
<?= I18N::translate('This user can sign in with %s', $provider->getSignInButtonLabel()) ?>
76+
<?php endif ?>
77+
<?php if ($is_oauth2_user && (!$edit_email OR !$edit_password)) : ?>
78+
<?= ' - ' . I18N::translate('The administrator might have disabled to change the email address or the password') ?>
79+
<?php endif ?>
80+
</div>
8381

8482
<form method="post" class="wt-page-options wt-page-options-my-account">
8583

@@ -158,7 +156,7 @@ $edit_password = (!$is_oauth2_user || boolval($oauth2_client->getPreference(OAut
158156
<div class="row">
159157
<label class="col-sm-3 col-form-label wt-page-options-label" for="password">
160158
<?php if ($is_oauth2_user) : ?>
161-
<?= I18N::translate('Password (within webtrees)') ?>
159+
<?= MoreI18N::xlate('Password') ?>
162160
<?php else : ?>
163161
<?= MoreI18N::xlate('Password') ?>
164162
<?php endif ?>

0 commit comments

Comments
 (0)