X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=showmore%2Fshowmore.php;h=bfde40f3c473c45e8a287504210d511f6976ff03;hb=30eb87e939f0a94df3caaa89f5404169a01c99d2;hp=9fe3497fa8db2ff8ffc84588b117e6154675fb9c;hpb=a26bfe79e97813ebe4c27fa3cb65c32669a9f2e5;p=friendica-addons.git diff --git a/showmore/showmore.php b/showmore/showmore.php index 9fe3497f..bfde40f3 100644 --- a/showmore/showmore.php +++ b/showmore/showmore.php @@ -8,7 +8,6 @@ * */ use Friendica\Core\Hook; -use Friendica\Core\L10n; use Friendica\DI; use Friendica\Util\Strings; @@ -40,24 +39,24 @@ function showmore_addon_settings(&$a, &$s) $chars = DI::pConfig()->get(local_user(), 'showmore', 'chars', 1100); $s .= ''; - $s .= '

' . L10n::t('"Show more" Settings').'

'; + $s .= '

' . DI::l10n()->t('"Show more" Settings').'

'; $s .= '
'; $s .= ''; return; @@ -74,7 +73,7 @@ function showmore_addon_settings_post(&$a, &$b) $enable = (!empty($_POST['showmore-enable']) ? intval($_POST['showmore-enable']) : 0); $disable = 1-$enable; DI::pConfig()->set(local_user(), 'showmore', 'disable', $disable); - info(L10n::t('Show More Settings saved.') . EOL); + info(DI::l10n()->t('Show More Settings saved.') . EOL); } } @@ -134,7 +133,7 @@ function showmore_prepare_body(\Friendica\App $a, &$hook_data) if ($found) { $rnd = Strings::getRandomHex(8); $hook_data['html'] = '' . $shortened . " " . - '' . L10n::t('show more') . '' . + '' . DI::l10n()->t('show more') . '' . ''; } }