From bbbcd049b62b8a2c8a619d4d4928f85177cc083c Mon Sep 17 00:00:00 2001 From: Marcus Funch Date: Wed, 4 Jun 2025 15:25:16 +0200 Subject: [PATCH] Terminology: Mutual friend(ship) -> Friend --- src/BaseModule.php | 2 +- src/Content/Widget.php | 2 +- src/Module/Contact.php | 4 ++-- src/Module/Profile/Contacts.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BaseModule.php b/src/BaseModule.php index 933f38600b..0faa6213e4 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -447,7 +447,7 @@ abstract class BaseModule implements ICanHandleRequests 'sel' => $current == 'following' ? 'active' : '', ], [ - 'label' => DI::l10n()->t('Mutual friends'), + 'label' => DI::l10n()->t('Friends'), 'url' => $baseUrl . '/contacts/mutuals', 'sel' => $current == 'mutuals' ? 'active' : '', ], diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 860256ed74..c983a51f59 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -256,7 +256,7 @@ class Widget $options = [ ['ref' => 'followers', 'name' => DI::l10n()->t('Followers')], ['ref' => 'following', 'name' => DI::l10n()->t('Following')], - ['ref' => 'mutuals', 'name' => DI::l10n()->t('Mutual friends')], + ['ref' => 'mutuals', 'name' => DI::l10n()->t('Friends')], ['ref' => 'nothing', 'name' => DI::l10n()->t('No relationship')], ]; diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 8db1ac65b2..e917b26bc3 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -399,7 +399,7 @@ class Contact extends BaseModule $header = DI::l10n()->t('Following'); break; case 'mutuals': - $header = DI::l10n()->t('Mutual friends'); + $header = DI::l10n()->t('Friends'); break; case 'nothing': $header = DI::l10n()->t('No relationship'); @@ -565,7 +565,7 @@ class Contact extends BaseModule if (!empty($contact['uid']) && !empty($contact['rel']) && DI::userSession()->getLocalUserId() == $contact['uid']) { switch ($contact['rel']) { case Model\Contact::FRIEND: - $alt_text = DI::l10n()->t('Mutual Friendship'); + $alt_text = DI::l10n()->t('Friend'); break; case Model\Contact::FOLLOWER: diff --git a/src/Module/Profile/Contacts.php b/src/Module/Profile/Contacts.php index 634a9f6bd8..d3253a19e0 100644 --- a/src/Module/Profile/Contacts.php +++ b/src/Module/Profile/Contacts.php @@ -126,7 +126,7 @@ class Contacts extends Module\BaseProfile $title = $this->tt('Following (%s)', 'Following (%s)', $total); break; case 'mutuals': - $title = $this->tt('Mutual friend (%s)', 'Mutual friends (%s)', $total); + $title = $this->tt('Friend (%s)', 'Friends (%s)', $total); $desc = $this->t( 'These contacts both follow and are followed by %s.', htmlentities($profile['name'], ENT_COMPAT, 'UTF-8')