Fix join angeltype message

This commit is contained in:
Igor Scheller 2023-12-23 01:05:37 +01:00 committed by msquare
parent f3e1192695
commit 6d4f059b3a
2 changed files with 5 additions and 1 deletions

View File

@ -165,10 +165,11 @@ function UserAngelType_add_view(AngelType $angeltype, $users_source, $user_id)
*/ */
function UserAngelType_join_view($user, AngelType $angeltype) function UserAngelType_join_view($user, AngelType $angeltype)
{ {
$isOther = $user->id != auth()->user()->id;
return page_with_title(sprintf(__('Become a %s'), htmlspecialchars($angeltype->name)), [ return page_with_title(sprintf(__('Become a %s'), htmlspecialchars($angeltype->name)), [
msg(), msg(),
info(sprintf( info(sprintf(
__('Do you really want to add %s to %s?'), $isOther ? __('Do you really want to add %s to %s?') : __('Do you want to become a %2$s?'),
$user->displayName, $user->displayName,
$angeltype->name $angeltype->name
), true), ), true),

View File

@ -1114,6 +1114,9 @@ msgstr "Möchtest Du wirklich %s von %s entfernen?"
msgid "Do you really want to add %s to %s?" msgid "Do you really want to add %s to %s?"
msgstr "Möchtest Du wirklich %s zu %s hinzufügen?" msgstr "Möchtest Du wirklich %s zu %s hinzufügen?"
msgid "Do you want to become a %2$s?"
msgstr "Möchtest Du ein %2$s werden?"
msgid "Confirm user" msgid "Confirm user"
msgstr "Benutzer bestätigen" msgstr "Benutzer bestätigen"