diff --git a/includes/view/UserAngelTypes_view.php b/includes/view/UserAngelTypes_view.php index 931793f6..aa916256 100644 --- a/includes/view/UserAngelTypes_view.php +++ b/includes/view/UserAngelTypes_view.php @@ -165,10 +165,11 @@ function UserAngelType_add_view(AngelType $angeltype, $users_source, $user_id) */ function UserAngelType_join_view($user, AngelType $angeltype) { + $isOther = $user->id != auth()->user()->id; return page_with_title(sprintf(__('Become a %s'), htmlspecialchars($angeltype->name)), [ msg(), 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, $angeltype->name ), true), diff --git a/resources/lang/de_DE/default.po b/resources/lang/de_DE/default.po index 29fc9c27..f48feba7 100644 --- a/resources/lang/de_DE/default.po +++ b/resources/lang/de_DE/default.po @@ -1114,6 +1114,9 @@ msgstr "Möchtest Du wirklich %s von %s entfernen?" msgid "Do you really want to add %s to %s?" 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" msgstr "Benutzer bestätigen"