mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
parent
af88c2daa3
commit
5dfee31108
175 changed files with 2841 additions and 2841 deletions
|
@ -46,7 +46,7 @@ function match_content(App $a)
|
|||
return '';
|
||||
}
|
||||
if (!$profile['pub_keywords'] && (!$profile['prv_keywords'])) {
|
||||
notice(L10n::t('No keywords to match. Please add keywords to your default profile.') . EOL);
|
||||
notice(DI::l10n()->t('No keywords to match. Please add keywords to your default profile.') . EOL);
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -84,8 +84,8 @@ function match_content(App $a)
|
|||
|
||||
$connlnk = DI::baseUrl() . '/follow/?url=' . $profile->url;
|
||||
$photo_menu = [
|
||||
'profile' => [L10n::t("View Profile"), Contact::magicLink($profile->url)],
|
||||
'follow' => [L10n::t("Connect/Follow"), $connlnk]
|
||||
'profile' => [DI::l10n()->t("View Profile"), Contact::magicLink($profile->url)],
|
||||
'follow' => [DI::l10n()->t("Connect/Follow"), $connlnk]
|
||||
];
|
||||
|
||||
$contact_details = Contact::getDetailsByURL($profile->url, 0);
|
||||
|
@ -99,7 +99,7 @@ function match_content(App $a)
|
|||
'about' => $contact_details['about'] ?? '',
|
||||
'account_type' => Contact::getAccountType($contact_details),
|
||||
'thumb' => ProxyUtils::proxifyUrl($profile->photo, false, ProxyUtils::SIZE_THUMB),
|
||||
'conntxt' => L10n::t('Connect'),
|
||||
'conntxt' => DI::l10n()->t('Connect'),
|
||||
'connlnk' => $connlnk,
|
||||
'img_hover' => $profile->tags,
|
||||
'photo_menu' => $photo_menu,
|
||||
|
@ -112,12 +112,12 @@ function match_content(App $a)
|
|||
'class' => 'pager',
|
||||
'first' => [
|
||||
'url' => 'match',
|
||||
'text' => L10n::t('first'),
|
||||
'text' => DI::l10n()->t('first'),
|
||||
'class' => 'previous' . ($start == 0 ? 'disabled' : '')
|
||||
],
|
||||
'next' => [
|
||||
'url' => 'match?start=' . $i,
|
||||
'text' => L10n::t('next'),
|
||||
'text' => DI::l10n()->t('next'),
|
||||
'class' => 'next' . ($i >= $msearch->total ? ' disabled' : '')
|
||||
]
|
||||
];
|
||||
|
@ -127,12 +127,12 @@ function match_content(App $a)
|
|||
}
|
||||
|
||||
if (empty($entries)) {
|
||||
info(L10n::t('No matches') . EOL);
|
||||
info(DI::l10n()->t('No matches') . EOL);
|
||||
}
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Profile Match'),
|
||||
'$title' => DI::l10n()->t('Profile Match'),
|
||||
'$contacts' => $entries,
|
||||
'$paginate' => $paginate
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue