mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-09 16:44: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
|
@ -36,7 +36,7 @@ class Contact extends BaseAdminModule
|
|||
foreach ($contacts as $uid) {
|
||||
Model\Contact::unblock($uid);
|
||||
}
|
||||
notice(L10n::tt('%s contact unblocked', '%s contacts unblocked', count($contacts)));
|
||||
notice(DI::l10n()->tt('%s contact unblocked', '%s contacts unblocked', count($contacts)));
|
||||
}
|
||||
|
||||
DI::baseUrl()->redirect('admin/blocklist/contact');
|
||||
|
@ -77,7 +77,7 @@ class Contact extends BaseAdminModule
|
|||
'$baseurl' => DI::baseUrl()->get(true),
|
||||
|
||||
'$contacts' => $contacts,
|
||||
'$total_contacts' => L10n::tt('%s total blocked contact', '%s total blocked contacts', $total),
|
||||
'$total_contacts' => DI::l10n()->tt('%s total blocked contact', '%s total blocked contacts', $total),
|
||||
'$paginate' => $pager->renderFull($total),
|
||||
'$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')],
|
||||
|
|
|
@ -92,13 +92,13 @@ class Users extends BaseAdminModule
|
|||
if (!empty($_POST['page_users_block'])) {
|
||||
// @TODO Move this to Model\User:block($users);
|
||||
DBA::update('user', ['blocked' => 1], ['uid' => $users]);
|
||||
notice(L10n::tt('%s user blocked', '%s users blocked', count($users)));
|
||||
notice(DI::l10n()->tt('%s user blocked', '%s users blocked', count($users)));
|
||||
}
|
||||
|
||||
if (!empty($_POST['page_users_unblock'])) {
|
||||
// @TODO Move this to Model\User:unblock($users);
|
||||
DBA::update('user', ['blocked' => 0], ['uid' => $users]);
|
||||
notice(L10n::tt('%s user unblocked', '%s users unblocked', count($users)));
|
||||
notice(DI::l10n()->tt('%s user unblocked', '%s users unblocked', count($users)));
|
||||
}
|
||||
|
||||
if (!empty($_POST['page_users_delete'])) {
|
||||
|
@ -110,7 +110,7 @@ class Users extends BaseAdminModule
|
|||
}
|
||||
}
|
||||
|
||||
notice(L10n::tt('%s user deleted', '%s users deleted', count($users)));
|
||||
notice(DI::l10n()->tt('%s user deleted', '%s users deleted', count($users)));
|
||||
}
|
||||
|
||||
if (!empty($_POST['page_users_approve'])) {
|
||||
|
|
|
@ -67,7 +67,7 @@ class Contact extends BaseModule
|
|||
}
|
||||
}
|
||||
if ($count_actions > 0) {
|
||||
info(L10n::tt('%d contact edited.', '%d contacts edited.', $count_actions));
|
||||
info(DI::l10n()->tt('%d contact edited.', '%d contacts edited.', $count_actions));
|
||||
}
|
||||
|
||||
DI::baseUrl()->redirect('contact');
|
||||
|
|
|
@ -101,7 +101,7 @@ class Invite extends BaseModule
|
|||
}
|
||||
|
||||
}
|
||||
notice(L10n::tt('%d message sent.', '%d messages sent.', $total) . EOL);
|
||||
notice(DI::l10n()->tt('%d message sent.', '%d messages sent.', $total) . EOL);
|
||||
}
|
||||
|
||||
public static function content(array $parameters = [])
|
||||
|
|
|
@ -110,11 +110,11 @@ class Contacts extends BaseModule
|
|||
DBA::close($contacts_stmt);
|
||||
|
||||
switch ($type) {
|
||||
case 'followers': $title = L10n::tt('Follower (%s)', 'Followers (%s)', $total); break;
|
||||
case 'following': $title = L10n::tt('Following (%s)', 'Following (%s)', $total); break;
|
||||
case 'mutuals': $title = L10n::tt('Mutual friend (%s)', 'Mutual friends (%s)', $total); break;
|
||||
case 'followers': $title = DI::l10n()->tt('Follower (%s)', 'Followers (%s)', $total); break;
|
||||
case 'following': $title = DI::l10n()->tt('Following (%s)', 'Following (%s)', $total); break;
|
||||
case 'mutuals': $title = DI::l10n()->tt('Mutual friend (%s)', 'Mutual friends (%s)', $total); break;
|
||||
|
||||
case 'all': default: $title = L10n::tt('Contact (%s)', 'Contacts (%s)', $total); break;
|
||||
case 'all': default: $title = DI::l10n()->tt('Contact (%s)', 'Contacts (%s)', $total); break;
|
||||
}
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('profile/contacts.tpl');
|
||||
|
|
|
@ -61,7 +61,7 @@ class Verify extends BaseModule
|
|||
|
||||
'$title' => DI::l10n()->t('Two-factor authentication'),
|
||||
'$message' => DI::l10n()->t('<p>Open the two-factor authentication app on your device to get an authentication code and verify your identity.</p>'),
|
||||
'$errors_label' => L10n::tt('Error', 'Errors', count(self::$errors)),
|
||||
'$errors_label' => DI::l10n()->tt('Error', 'Errors', count(self::$errors)),
|
||||
'$errors' => self::$errors,
|
||||
'$recovery_message' => DI::l10n()->t('Don’t have your phone? <a href="%s">Enter a two-factor recovery code</a>', '2fa/recovery'),
|
||||
'$verify_code' => ['verify_code', DI::l10n()->t('Please enter a code from your authentication app'), '', '', 'required', 'autofocus placeholder="000000"', 'tel'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue