mirror of
https://github.com/friendica/friendica
synced 2025-04-25 14:30:10 +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
|
@ -62,9 +62,9 @@ class CalendarExport
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate("widget/events.tpl");
|
||||
$return = Renderer::replaceMacros($tpl, [
|
||||
'$etitle' => L10n::t("Export"),
|
||||
'$export_ical' => L10n::t("Export calendar as ical"),
|
||||
'$export_csv' => L10n::t("Export calendar as csv"),
|
||||
'$etitle' => DI::l10n()->t("Export"),
|
||||
'$export_ical' => DI::l10n()->t("Export calendar as ical"),
|
||||
'$export_csv' => DI::l10n()->t("Export calendar as csv"),
|
||||
'$user' => $user
|
||||
]);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ class ContactBlock
|
|||
'network' => [Protocol::DFRN, Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA, Protocol::FEED],
|
||||
]);
|
||||
|
||||
$contacts_title = L10n::t('No contacts');
|
||||
$contacts_title = DI::l10n()->t('No contacts');
|
||||
|
||||
$micropro = [];
|
||||
|
||||
|
@ -106,7 +106,7 @@ class ContactBlock
|
|||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$contacts' => $contacts_title,
|
||||
'$nickname' => $profile['nickname'],
|
||||
'$viewcontacts' => L10n::t('View Contacts'),
|
||||
'$viewcontacts' => DI::l10n()->t('View Contacts'),
|
||||
'$micropro' => $micropro,
|
||||
]);
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ class SavedSearches
|
|||
'id' => $saved_search['id'],
|
||||
'term' => $saved_search['term'],
|
||||
'encodedterm' => urlencode($saved_search['term']),
|
||||
'delete' => L10n::t('Remove term'),
|
||||
'delete' => DI::l10n()->t('Remove term'),
|
||||
'selected' => $search == $saved_search['term'],
|
||||
];
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class SavedSearches
|
|||
$tpl = Renderer::getMarkupTemplate('widget/saved_searches.tpl');
|
||||
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Saved Searches'),
|
||||
'$title' => DI::l10n()->t('Saved Searches'),
|
||||
'$add' => '',
|
||||
'$searchbox' => '',
|
||||
'$saved' => $saved,
|
||||
|
|
|
@ -50,7 +50,7 @@ class TagCloud
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('widget/tagcloud.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Tags'),
|
||||
'$title' => DI::l10n()->t('Tags'),
|
||||
'$tags' => $tags
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -30,7 +30,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),
|
||||
'$more' => L10n::t('More Trending Tags'),
|
||||
'$more' => DI::l10n()->t('More Trending Tags'),
|
||||
'$tags' => $tags,
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue