X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fapi.php;h=e9e913012dbc1f73f5b5237aad150b049557e266;hb=e5d020ff7c00e0d421a303dad723e88c7f4c9316;hp=69d7311a0b80572e2c76feb8ead8d1254cc07f01;hpb=c938623a3d7e947c3b979466253ba5708af3f6b4;p=friendica.git diff --git a/mod/api.php b/mod/api.php index 69d7311a0b..e9e913012d 100644 --- a/mod/api.php +++ b/mod/api.php @@ -1,11 +1,14 @@ user) && x($a->user, 'uid') && $a->user['uid'] != local_user()) { - notice(t('Permission denied.') . EOL); + notice(L10n::t('Permission denied.') . EOL); return; } } @@ -77,18 +81,18 @@ function api_content(App $a) } $tpl = get_markup_template("oauth_authorize_done.tpl"); - $o = replace_macros($tpl, array( - '$title' => t('Authorize application connection'), - '$info' => t('Return to your app and insert this Securty Code:'), + $o = replace_macros($tpl, [ + '$title' => L10n::t('Authorize application connection'), + '$info' => L10n::t('Return to your app and insert this Securty Code:'), '$code' => $verifier, - )); + ]); return $o; } if (!local_user()) { /// @TODO We need login form to redirect to this page - notice(t('Please login to continue.') . EOL); + notice(L10n::t('Please login to continue.') . EOL); return Login::form($a->query_string, false, $request->get_parameters()); } //FKOAuth1::loginUser(4); @@ -99,13 +103,13 @@ function api_content(App $a) } $tpl = get_markup_template('oauth_authorize.tpl'); - $o = replace_macros($tpl, array( - '$title' => t('Authorize application connection'), + $o = replace_macros($tpl, [ + '$title' => L10n::t('Authorize application connection'), '$app' => $app, - '$authorize' => t('Do you want to authorize this application to access your posts and contacts, and/or create new posts for you?'), - '$yes' => t('Yes'), - '$no' => t('No'), - )); + '$authorize' => L10n::t('Do you want to authorize this application to access your posts and contacts, and/or create new posts for you?'), + '$yes' => L10n::t('Yes'), + '$no' => L10n::t('No'), + ]); return $o; }