Change label of mention-button

* "Mention" on users profile
* "Post to group" on group/forums profile
This commit is contained in:
Jakobus Schürz (admin) 2023-10-01 12:53:06 +02:00
parent 9f2d2d4ac1
commit ed9d20b291
2 changed files with 6 additions and 1 deletions

View file

@ -68,6 +68,7 @@ class VCard
$follow_link = ''; $follow_link = '';
$unfollow_link = ''; $unfollow_link = '';
$wallmessage_link = ''; $wallmessage_link = '';
$showforum_link = '';
$photo = Contact::getPhoto($contact); $photo = Contact::getPhoto($contact);
@ -119,6 +120,10 @@ class VCard
'$unfollow_link' => $unfollow_link, '$unfollow_link' => $unfollow_link,
'$wallmessage' => DI::l10n()->t('Message'), '$wallmessage' => DI::l10n()->t('Message'),
'$wallmessage_link' => $wallmessage_link, '$wallmessage_link' => $wallmessage_link,
'$showforum' => DI::l10n()->t('Show forum'),
'$showforum_link' => $showforum_link,
'$mentioning' => DI::l10n()->t('Mention'),
'$post2group' => DI::l10n()->t('Post to group'),
]); ]);
} }
} }

View file

@ -60,7 +60,7 @@
<div id="mention-link-button"> <div id="mention-link-button">
<button type="button" id="mention-link" class="btn btn-labeled btn-primary{{if !$always_open_compose}} modal-open{{/if}}" onclick="openWallMessage('compose/0?body={{if $contact.forum==1}}!{{else}}@{{/if}}{{$contact.addr}}')"> <button type="button" id="mention-link" class="btn btn-labeled btn-primary{{if !$always_open_compose}} modal-open{{/if}}" onclick="openWallMessage('compose/0?body={{if $contact.forum==1}}!{{else}}@{{/if}}{{$contact.addr}}')">
<span class=""><i class="fa fa-pencil-square-o"></i></span> <span class=""><i class="fa fa-pencil-square-o"></i></span>
<span class="">{{$mentioning}}</span> <span class="">{{if $contact.forum==1}}{{$post2group}}{{else}}{{$mentioning}}{{/if}}</span>
</button> </button>
</div> </div>
{{/if}} {{/if}}