Updat tt() calls

update function calls for tt()
This commit is contained in:
Adam Magness 2018-01-21 17:15:52 -05:00
commit 3b0f69599e
13 changed files with 30 additions and 27 deletions

View file

@ -387,7 +387,7 @@ function admin_page_contactblock_post(App $a)
foreach ($contacts as $uid) {
Contact::unblock($uid);
}
notice(tt("%s contact unblocked", "%s contacts unblocked", count($contacts)));
notice(L10n::tt("%s contact unblocked", "%s contacts unblocked", count($contacts)));
}
goaway('admin/contactblock');
return; // NOTREACHED
@ -435,7 +435,7 @@ function admin_page_contactblock(App $a)
'$baseurl' => System::baseUrl(true),
'$contacts' => $contacts,
'$total_contacts' => tt('%s total blocked contact', '%s total blocked contacts', $total),
'$total_contacts' => L10n::tt('%s total blocked contact', '%s total blocked contacts', $total),
'$paginate' => paginate($a),
'$contacturl' => ['contact_url', L10n::t("Profile URL"), '', L10n::t("URL of the remote contact to block.")],
]);
@ -1516,13 +1516,13 @@ function admin_page_users_post(App $a)
q("UPDATE `user` SET `blocked` = 1-`blocked` WHERE `uid` = %s", intval($uid)
);
}
notice(tt("%s user blocked/unblocked", "%s users blocked/unblocked", count($users)));
notice(L10n::tt("%s user blocked/unblocked", "%s users blocked/unblocked", count($users)));
}
if (x($_POST, 'page_users_delete')) {
foreach ($users as $uid) {
User::remove($uid);
}
notice(tt("%s user deleted", "%s users deleted", count($users)));
notice(L10n::tt("%s user deleted", "%s users deleted", count($users)));
}
if (x($_POST, 'page_users_approve')) {

View file

@ -143,7 +143,7 @@ function contacts_batch_actions(App $a)
}
}
if ($count_actions > 0) {
info(tt("%d contact edited.", "%d contacts edited.", $count_actions));
info(L10n::tt("%d contact edited.", "%d contacts edited.", $count_actions));
}
if (x($_SESSION, 'return_url')) {

View file

@ -117,7 +117,7 @@ function dfrn_request_post(App $a)
}
$invalid = Probe::validDfrn($parms);
if ($invalid) {
notice(sprintf(tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location", $invalid), $invalid) . EOL);
notice(sprintf(L10n::tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location", $invalid), $invalid) . EOL);
return;
}
}
@ -364,7 +364,7 @@ function dfrn_request_post(App $a)
}
$invalid = Probe::validDfrn($parms);
if ($invalid) {
notice(sprintf(tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location", $invalid), $invalid) . EOL);
notice(sprintf(L10n::tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location", $invalid), $invalid) . EOL);
return;
}

View file

@ -91,11 +91,11 @@ function invite_post(App $a) {
return;
}
} else {
notice( sprintf( t('%s : Message delivery failed.'), $recip) . EOL);
notice(sprintf(L10n::t('%s : Message delivery failed.'), $recip) . EOL);
}
}
notice( sprintf( tt("%d message sent.", "%d messages sent.", $total) , $total) . EOL);
notice(sprintf(L10n::tt("%d message sent.", "%d messages sent.", $total), $total) . EOL);
return;
}

View file

@ -499,7 +499,7 @@ function render_messages(array $msg, $t)
'$date' => datetime_convert('UTC', date_default_timezone_get(), $rr['mailcreated'], t('D, d M Y - g:i A')),
'$ago' => relative_date($rr['mailcreated']),
'$seen' => $rr['mailseen'],
'$count' => tt('%d message', '%d messages', $rr['count']),
'$count' => L10n::tt('%d message', '%d messages', $rr['count']),
]);
}

View file

@ -541,7 +541,7 @@ function networkThreadedView(App $a, $update = 0)
if ($gid) {
if (($t = Contact::getOStatusCountByGroupId($gid)) && !PConfig::get(local_user(), 'system', 'nowarn_insecure')) {
notice(tt("Warning: This group contains %s member from a network that doesn't allow non public messages.",
notice(L10n::tt("Warning: This group contains %s member from a network that doesn't allow non public messages.",
"Warning: This group contains %s members from a network that doesn't allow non public messages.",
$t) . EOL);
notice(L10n::t("Messages in this group won't be send to these receivers.").EOL);