Terminology: Mutual friend(ship) -> Friend

This commit is contained in:
Marcus Funch 2025-06-04 15:25:16 +02:00
parent 5be0edb264
commit bbbcd049b6
4 changed files with 5 additions and 5 deletions

View file

@ -447,7 +447,7 @@ abstract class BaseModule implements ICanHandleRequests
'sel' => $current == 'following' ? 'active' : '', 'sel' => $current == 'following' ? 'active' : '',
], ],
[ [
'label' => DI::l10n()->t('Mutual friends'), 'label' => DI::l10n()->t('Friends'),
'url' => $baseUrl . '/contacts/mutuals', 'url' => $baseUrl . '/contacts/mutuals',
'sel' => $current == 'mutuals' ? 'active' : '', 'sel' => $current == 'mutuals' ? 'active' : '',
], ],

View file

@ -256,7 +256,7 @@ class Widget
$options = [ $options = [
['ref' => 'followers', 'name' => DI::l10n()->t('Followers')], ['ref' => 'followers', 'name' => DI::l10n()->t('Followers')],
['ref' => 'following', 'name' => DI::l10n()->t('Following')], ['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')], ['ref' => 'nothing', 'name' => DI::l10n()->t('No relationship')],
]; ];

View file

@ -399,7 +399,7 @@ class Contact extends BaseModule
$header = DI::l10n()->t('Following'); $header = DI::l10n()->t('Following');
break; break;
case 'mutuals': case 'mutuals':
$header = DI::l10n()->t('Mutual friends'); $header = DI::l10n()->t('Friends');
break; break;
case 'nothing': case 'nothing':
$header = DI::l10n()->t('No relationship'); $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']) { if (!empty($contact['uid']) && !empty($contact['rel']) && DI::userSession()->getLocalUserId() == $contact['uid']) {
switch ($contact['rel']) { switch ($contact['rel']) {
case Model\Contact::FRIEND: case Model\Contact::FRIEND:
$alt_text = DI::l10n()->t('Mutual Friendship'); $alt_text = DI::l10n()->t('Friend');
break; break;
case Model\Contact::FOLLOWER: case Model\Contact::FOLLOWER:

View file

@ -126,7 +126,7 @@ class Contacts extends Module\BaseProfile
$title = $this->tt('Following (%s)', 'Following (%s)', $total); $title = $this->tt('Following (%s)', 'Following (%s)', $total);
break; break;
case 'mutuals': case 'mutuals':
$title = $this->tt('Mutual friend (%s)', 'Mutual friends (%s)', $total); $title = $this->tt('Friend (%s)', 'Friends (%s)', $total);
$desc = $this->t( $desc = $this->t(
'These contacts both follow and are followed by <strong>%s</strong>.', 'These contacts both follow and are followed by <strong>%s</strong>.',
htmlentities($profile['name'], ENT_COMPAT, 'UTF-8') htmlentities($profile['name'], ENT_COMPAT, 'UTF-8')