X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=pumpio%2Fpumpio.php;h=d0fe09d568e070fe6f2e730762a232faa28ac22e;hb=ffa36da2c95867dec4acb6a3d4a9975bf65140d3;hp=be4db5fafdcd9b82c49823f7d4d3276c932e4919;hpb=96c41e56233765571870b56081efc366655bead4;p=friendica-addons.git
diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php
index be4db5fa..d0fe09d5 100644
--- a/pumpio/pumpio.php
+++ b/pumpio/pumpio.php
@@ -7,6 +7,7 @@
*/
use Friendica\Core\Addon;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Worker;
use Friendica\Model\Contact;
@@ -14,6 +15,8 @@ use Friendica\Model\GContact;
use Friendica\Model\Group;
use Friendica\Model\User;
use Friendica\Model\Item;
+use Friendica\Model\Queue;
+use Friendica\Util\Network;
require 'addon/pumpio/oauth/http.php';
require 'addon/pumpio/oauth/oauth_client.php';
@@ -49,7 +52,7 @@ function pumpio_module() {}
function pumpio_content(&$a) {
if(! local_user()) {
- notice( t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return '';
}
@@ -145,7 +148,7 @@ function pumpio_connect(&$a) {
if (($consumer_key == "") || ($consumer_secret == "")) {
logger("pumpio_connect: ".sprintf("Unable to register the client at the pump.io server '%s'.", $hostname));
- $o .= sprintf(t("Unable to register the client at the pump.io server '%s'."), $hostname);
+ $o .= L10n::t("Unable to register the client at the pump.io server '%s'.", $hostname);
return($o);
}
@@ -185,8 +188,8 @@ function pumpio_connect(&$a) {
if($success) {
logger("pumpio_connect: authenticated");
- $o .= t("You are now authenticated to pumpio.");
- $o .= ' '.t("return to the connector page").'';
+ $o .= L10n::t("You are now authenticated to pumpio.");
+ $o .= ' '.L10n::t("return to the connector page").'';
} else {
logger("pumpio_connect: could not connect");
$o = 'Could not connect to pumpio. Refresh the page or try again later.';
@@ -204,7 +207,7 @@ function pumpio_jot_nets(&$a,&$b) {
$pumpio_defpost = PConfig::get(local_user(),'pumpio','post_by_default');
$selected = ((intval($pumpio_defpost) == 1) ? ' checked="checked" ' : '');
$b .= '
'
- . t('Post to pumpio') . '
';
+ . L10n::t('Post to pumpio') . '';
}
}
@@ -242,20 +245,20 @@ function pumpio_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '