]> git.mxchange.org Git - friendica.git/commitdiff
Change label of mention-button
authorJakobus Schürz (admin) <adminjs@schuerz.at>
Sun, 1 Oct 2023 10:53:06 +0000 (12:53 +0200)
committerJakobus Schürz (admin) <adminjs@schuerz.at>
Sun, 1 Oct 2023 10:53:06 +0000 (12:53 +0200)
* "Mention" on users profile
* "Post to group" on group/forums profile

src/Content/Widget/VCard.php
view/theme/frio/templates/widget/vcard.tpl

index 62a8e90853f30ff2378bc166104ba28ccc480da0..32eb95e434db3add2acb627cee048a37c9814959 100644 (file)
@@ -68,6 +68,7 @@ class VCard
                $follow_link      = '';
                $unfollow_link    = '';
                $wallmessage_link = '';
+               $showforum_link   = '';
 
                $photo   = Contact::getPhoto($contact);
 
@@ -119,6 +120,10 @@ class VCard
                        '$unfollow_link'    => $unfollow_link,
                        '$wallmessage'      => DI::l10n()->t('Message'),
                        '$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'),
                ]);
        }
 }
index 3786939388bb58c53dee6bbdf752b7cda1fa957d..ecc47bea29387004056f587a4c4347cffb919415 100644 (file)
@@ -60,7 +60,7 @@
                                <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}}')">
                                                <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>
                                </div>
                         {{/if}}