mirror of
https://github.com/friendica/friendica
synced 2025-04-25 01:10:12 +00:00
Review sprintf
remove more sprintf calls
This commit is contained in:
parent
f7e9b74dca
commit
208a149a7b
32 changed files with 205 additions and 188 deletions
|
@ -117,7 +117,7 @@ function dfrn_request_post(App $a)
|
|||
}
|
||||
$invalid = Probe::validDfrn($parms);
|
||||
if ($invalid) {
|
||||
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);
|
||||
notice(L10n::tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location", $invalid) . EOL);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -242,7 +242,7 @@ function dfrn_request_post(App $a)
|
|||
intval($uid)
|
||||
);
|
||||
if (DBM::is_result($r) && count($r) > $maxreq) {
|
||||
notice(sprintf(L10n::t('%s has received too many connection requests today.'), $a->profile['name']) . EOL);
|
||||
notice(L10n::t('%s has received too many connection requests today.', $a->profile['name']) . EOL);
|
||||
notice(L10n::t('Spam protection measures have been invoked.') . EOL);
|
||||
notice(L10n::t('Friends are advised to please try again in 24 hours.') . EOL);
|
||||
return;
|
||||
|
@ -313,7 +313,7 @@ function dfrn_request_post(App $a)
|
|||
notice(L10n::t('You have already introduced yourself here.') . EOL);
|
||||
return;
|
||||
} elseif ($ret[0]['rel'] == CONTACT_IS_FRIEND) {
|
||||
notice(sprintf(L10n::t('Apparently you are already friends with %s.'), $a->profile['name']) . EOL);
|
||||
notice(L10n::t('Apparently you are already friends with %s.', $a->profile['name']) . EOL);
|
||||
return;
|
||||
} else {
|
||||
$contact_record = $ret[0];
|
||||
|
@ -364,7 +364,7 @@ function dfrn_request_post(App $a)
|
|||
}
|
||||
$invalid = Probe::validDfrn($parms);
|
||||
if ($invalid) {
|
||||
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);
|
||||
notice(L10n::tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location", $invalid) . EOL);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -524,8 +524,8 @@ function dfrn_request_content(App $a)
|
|||
'$hidethem' => L10n::t('Hide this contact'),
|
||||
'$hidechecked' => '',
|
||||
'$confirm_key' => $confirm_key,
|
||||
'$welcome' => sprintf(L10n::t('Welcome home %s.'), $a->user['username']),
|
||||
'$please' => sprintf(L10n::t('Please confirm your introduction/connection request to %s.'), $dfrn_url),
|
||||
'$welcome' => L10n::t('Welcome home %s.', $a->user['username']),
|
||||
'$please' => L10n::t('Please confirm your introduction/connection request to %s.', $dfrn_url),
|
||||
'$submit' => L10n::t('Confirm'),
|
||||
'$uid' => $_SESSION['uid'],
|
||||
'$nickname' => $a->user['nickname'],
|
||||
|
@ -647,13 +647,13 @@ function dfrn_request_content(App $a)
|
|||
'$header' => L10n::t('Friend/Connection Request'),
|
||||
'$desc' => L10n::t('Examples: jojo@demo.friendica.com, http://demo.friendica.com/profile/jojo, testuser@gnusocial.de'),
|
||||
'$pls_answer' => L10n::t('Please answer the following:'),
|
||||
'$does_know_you' => ['knowyou', sprintf(L10n::t('Does %s know you?'), $a->profile['name']), false, '', [L10n::t('No'), L10n::t('Yes')]],
|
||||
'$does_know_you' => ['knowyou', L10n::t('Does %s know you?', $a->profile['name']), false, '', [L10n::t('No'), L10n::t('Yes')]],
|
||||
'$add_note' => L10n::t('Add a personal note:'),
|
||||
'$page_desc' => $page_desc,
|
||||
'$friendica' => L10n::t('Friendica'),
|
||||
'$statusnet' => L10n::t('GNU Social (Pleroma, Mastodon)'),
|
||||
'$diaspora' => L10n::t('Diaspora (Socialhome, Hubzilla)'),
|
||||
'$diasnote' => sprintf(L10n::t(' - please do not use this form. Instead, enter %s into your Diaspora search bar.'), $target_addr),
|
||||
'$diasnote' => L10n::t(' - please do not use this form. Instead, enter %s into your Diaspora search bar.', $target_addr),
|
||||
'$your_address' => L10n::t('Your Identity Address:'),
|
||||
'$invite_desc' => $invite_desc,
|
||||
'$submit' => L10n::t('Submit Request'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue