Fix join angeltype message
This commit is contained in:
parent
f3e1192695
commit
6d4f059b3a
|
@ -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),
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue