]> git.mxchange.org Git - friendica-addons.git/blobdiff - discourse/discourse.php
Bump phpmailer/phpmailer from 6.1.4 to 6.1.6 in /phpmailer
[friendica-addons.git] / discourse / discourse.php
index f53db17cf1df68d3e89b81e16d61d3ba7a1e488a..f684425a9967d208514fdf706f44b5db26753a19 100644 (file)
@@ -9,7 +9,6 @@
  */
 use Friendica\App;
 use Friendica\Core\Hook;
-use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
 use Friendica\Core\Protocol;
@@ -47,9 +46,9 @@ function discourse_settings(App $a, &$s)
 
        $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/discourse/');
        $s .= Renderer::replaceMacros($t, [
-               '$title'   => L10n::t('Discourse'),
-               '$enabled' => ['enabled', L10n::t('Enable processing of Discourse mailing list mails'), $enabled, L10n::t('If enabled, incoming mails from Discourse will be improved so they look much better. To make it work, you have to configure the e-mail settings in Friendica. You also have to enable the mailing list mode in Discourse. Then you have to add the Discourse mail account as contact.')],
-               '$submit'  => L10n::t('Save Settings'),
+               '$title'   => DI::l10n()->t('Discourse'),
+               '$enabled' => ['enabled', DI::l10n()->t('Enable processing of Discourse mailing list mails'), $enabled, DI::l10n()->t('If enabled, incoming mails from Discourse will be improved so they look much better. To make it work, you have to configure the e-mail settings in Friendica. You also have to enable the mailing list mode in Discourse. Then you have to add the Discourse mail account as contact.')],
+               '$submit'  => DI::l10n()->t('Save Settings'),
        ]);
 }