mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 17:44:27 +02: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
|
@ -26,9 +26,9 @@ class Contact extends BaseAdminModule
|
|||
$contact_id = Model\Contact::getIdForURL($contact_url);
|
||||
if ($contact_id) {
|
||||
Model\Contact::block($contact_id, $block_reason);
|
||||
notice(L10n::t('The contact has been blocked from the node'));
|
||||
notice(DI::l10n()->t('The contact has been blocked from the node'));
|
||||
} else {
|
||||
notice(L10n::t('Could not find any contact entry for this URL (%s)', $contact_url));
|
||||
notice(DI::l10n()->t('Could not find any contact entry for this URL (%s)', $contact_url));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,19 +57,19 @@ class Contact extends BaseAdminModule
|
|||
$t = Renderer::getMarkupTemplate('admin/blocklist/contact.tpl');
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
// strings //
|
||||
'$title' => L10n::t('Administration'),
|
||||
'$page' => L10n::t('Remote Contact Blocklist'),
|
||||
'$description' => L10n::t('This page allows you to prevent any message from a remote contact to reach your node.'),
|
||||
'$submit' => L10n::t('Block Remote Contact'),
|
||||
'$select_all' => L10n::t('select all'),
|
||||
'$select_none' => L10n::t('select none'),
|
||||
'$block' => L10n::t('Block'),
|
||||
'$unblock' => L10n::t('Unblock'),
|
||||
'$no_data' => L10n::t('No remote contact is blocked from this node.'),
|
||||
'$title' => DI::l10n()->t('Administration'),
|
||||
'$page' => DI::l10n()->t('Remote Contact Blocklist'),
|
||||
'$description' => DI::l10n()->t('This page allows you to prevent any message from a remote contact to reach your node.'),
|
||||
'$submit' => DI::l10n()->t('Block Remote Contact'),
|
||||
'$select_all' => DI::l10n()->t('select all'),
|
||||
'$select_none' => DI::l10n()->t('select none'),
|
||||
'$block' => DI::l10n()->t('Block'),
|
||||
'$unblock' => DI::l10n()->t('Unblock'),
|
||||
'$no_data' => DI::l10n()->t('No remote contact is blocked from this node.'),
|
||||
|
||||
'$h_contacts' => L10n::t('Blocked Remote Contacts'),
|
||||
'$h_newblock' => L10n::t('Block New Remote Contact'),
|
||||
'$th_contacts' => [L10n::t('Photo'), L10n::t('Name'), L10n::t('Reason')],
|
||||
'$h_contacts' => DI::l10n()->t('Blocked Remote Contacts'),
|
||||
'$h_newblock' => DI::l10n()->t('Block New Remote Contact'),
|
||||
'$th_contacts' => [DI::l10n()->t('Photo'), DI::l10n()->t('Name'), DI::l10n()->t('Reason')],
|
||||
|
||||
'$form_security_token' => parent::getFormSecurityToken('admin_contactblock'),
|
||||
|
||||
|
@ -79,8 +79,8 @@ class Contact extends BaseAdminModule
|
|||
'$contacts' => $contacts,
|
||||
'$total_contacts' => L10n::tt('%s total blocked contact', '%s total blocked contacts', $total),
|
||||
'$paginate' => $pager->renderFull($total),
|
||||
'$contacturl' => ['contact_url', L10n::t('Profile URL'), '', L10n::t('URL of the remote contact to block.')],
|
||||
'$contact_block_reason' => ['contact_block_reason', L10n::t('Block Reason')],
|
||||
'$contacturl' => ['contact_url', DI::l10n()->t('Profile URL'), '', DI::l10n()->t('URL of the remote contact to block.')],
|
||||
'$contact_block_reason' => ['contact_block_reason', DI::l10n()->t('Block Reason')],
|
||||
]);
|
||||
return $o;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue