X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=wppost%2Fwppost.php;h=052b4074d287e6f52a2e66f2acb82e182bef7dc2;hb=65e4726718a10e1d15782d299b348add76377751;hp=d8d2431f1152d68343a4678839216892b648794d;hpb=a26bfe79e97813ebe4c27fa3cb65c32669a9f2e5;p=friendica-addons.git
diff --git a/wppost/wppost.php b/wppost/wppost.php
index d8d2431f..052b4074 100644
--- a/wppost/wppost.php
+++ b/wppost/wppost.php
@@ -9,7 +9,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Hook;
-use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;
@@ -54,7 +53,7 @@ function wppost_jot_nets(\Friendica\App &$a, array &$jotnets_fields)
'type' => 'checkbox',
'field' => [
'wppost_enable',
- L10n::t('Post to Wordpress'),
+ DI::l10n()->t('Post to Wordpress'),
DI::pConfig()->get(local_user(),'wppost','post_by_default')
]
];
@@ -95,54 +94,54 @@ function wppost_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '
'. L10n::t('Wordpress Export').'
';
+ $s .= '
'. DI::l10n()->t('Wordpress Export').'
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
'. L10n::t('Wordpress Export').'
';
+ $s .= '
'. DI::l10n()->t('Wordpress Export').'
';
$s .= '';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '';
+ $s .= '';
$s .= '';
$s .= '
';
/* provide a submit button */
- $s .= '
';
+ $s .= '';
}
@@ -244,7 +243,7 @@ function wppost_send(&$a, &$b)
$wp_blog = DI::pConfig()->get($b['uid'],'wppost','wp_blog');
$wp_backlink_text = DI::pConfig()->get($b['uid'],'wppost','wp_backlink_text');
if ($wp_backlink_text == '') {
- $wp_backlink_text = L10n::t('Read the origÂiÂnal post and comÂment stream on Friendica');
+ $wp_backlink_text = DI::l10n()->t('Read the origÂiÂnal post and comÂment stream on Friendica');
}
if ($wp_username && $wp_password && $wp_blog) {
@@ -302,7 +301,7 @@ function wppost_send(&$a, &$b)
}
}
- $title = '' . (($wptitle) ? $wptitle : L10n::t('Post from Friendica')) . '';
+ $title = '' . (($wptitle) ? $wptitle : DI::l10n()->t('Post from Friendica')) . '';
$post = BBCode::convert($b['body'], false, 4);
// If a link goes to youtube then remove the stuff around it. Wordpress detects youtube links and embeds it