mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Move L10n::tt() calls to DI::l10n()->tt() calls
This commit is contained in:
parent
5dfee31108
commit
a9a36fb302
20 changed files with 42 additions and 42 deletions
|
@ -53,7 +53,7 @@ class Widget
|
|||
$x = intval(DI::pConfig()->get(local_user(), 'system', 'invites_remaining'));
|
||||
if ($x || is_site_admin()) {
|
||||
DI::page()['aside'] .= '<div class="side-link widget" id="side-invite-remain">'
|
||||
. L10n::tt('%d invitation available', '%d invitations available', $x)
|
||||
. DI::l10n()->tt('%d invitation available', '%d invitations available', $x)
|
||||
. '</div>';
|
||||
}
|
||||
}
|
||||
|
@ -398,7 +398,7 @@ class Widget
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('widget/remote_friends_common.tpl');
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$desc' => L10n::tt("%d contact in common", "%d contacts in common", $t),
|
||||
'$desc' => DI::l10n()->tt("%d contact in common", "%d contacts in common", $t),
|
||||
'$base' => DI::baseUrl(),
|
||||
'$uid' => $profile_uid,
|
||||
'$cid' => (($cid) ? $cid : '0'),
|
||||
|
|
|
@ -87,7 +87,7 @@ class ContactBlock
|
|||
$contacts_stmt = DBA::select('contact', ['id', 'uid', 'addr', 'url', 'name', 'thumb', 'network'], ['id' => $contact_ids]);
|
||||
|
||||
if (DBA::isResult($contacts_stmt)) {
|
||||
$contacts_title = L10n::tt('%d Contact', '%d Contacts', $total);
|
||||
$contacts_title = DI::l10n()->tt('%d Contact', '%d Contacts', $total);
|
||||
$micropro = [];
|
||||
|
||||
while ($contact = DBA::fetch($contacts_stmt)) {
|
||||
|
|
|
@ -29,7 +29,7 @@ class TrendingTags
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('widget/trending_tags.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::tt('Trending Tags (last %d hour)', 'Trending Tags (last %d hours)', $period),
|
||||
'$title' => DI::l10n()->tt('Trending Tags (last %d hour)', 'Trending Tags (last %d hours)', $period),
|
||||
'$more' => DI::l10n()->t('More Trending Tags'),
|
||||
'$tags' => $tags,
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue