Update more t() calls
This commit is contained in:
Adam Magness
2018-01-22 07:29:50 -05:00
parent 3b0f69599e
commit ead9d86236
25 changed files with 367 additions and 346 deletions

View File

@@ -7,8 +7,8 @@ use Friendica\Core\L10n;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
function fsuggest_post(App $a) {
function fsuggest_post(App $a)
{
if (! local_user()) {
return;
}
@@ -35,13 +35,12 @@ function fsuggest_post(App $a) {
$note = escape_tags(trim($_POST['note']));
if($new_contact) {
if ($new_contact) {
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($new_contact),
intval(local_user())
);
if (DBM::is_result($r)) {
$x = q("INSERT INTO `fsuggest` ( `uid`,`cid`,`name`,`url`,`request`,`photo`,`note`,`created`)
VALUES ( %d, %d, '%s','%s','%s','%s','%s','%s')",
intval(local_user()),
@@ -69,14 +68,9 @@ function fsuggest_post(App $a) {
info(L10n::t('Friend suggestion sent.') . EOL);
}
}
}
function fsuggest_content(App $a)
{
require_once 'include/acl_selectors.php';
@@ -103,7 +97,7 @@ function fsuggest_content(App $a)
}
$contact = $r[0];
$o = '<h3>' . t('Suggest Friends') . '</h3>';
$o = '<h3>' . L10n::t('Suggest Friends') . '</h3>';
$o .= '<div id="fsuggest-desc" >' . sprintf(t('Suggest a friend for %s'), $contact['name']) . '</div>';
@@ -117,7 +111,7 @@ function fsuggest_content(App $a)
);
$o .= '<div id="fsuggest-submit-wrapper"><input id="fsuggest-submit" type="submit" name="submit" value="' . t('Submit') . '" /></div>';
$o .= '<div id="fsuggest-submit-wrapper"><input id="fsuggest-submit" type="submit" name="submit" value="' . L10n::t('Submit') . '" /></div>';
$o .= '</form>';
return $o;