X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=xmpp%2Fxmpp.php;h=bd5adb574e2714513e779c867569a98e2a9f272c;hb=87a392a3c793b1b9b781939b46cf4189f15fb881;hp=fc2d6bb5c0d347e469ebfed2456dab7b1c85d368;hpb=0afd633346b517894ff8e92c705bd5d052dd06a2;p=friendica-addons.git diff --git a/xmpp/xmpp.php b/xmpp/xmpp.php index fc2d6bb5..bd5adb57 100644 --- a/xmpp/xmpp.php +++ b/xmpp/xmpp.php @@ -1,5 +1,4 @@ '; - $s .= '

' . t('XMPP-Chat (Jabber)') . '

'; + $s .= '

' . L10n::t('XMPP-Chat (Jabber)') . '

'; $s .= ''; $s .= ''; } function xmpp_login() @@ -100,24 +100,24 @@ function xmpp_login() } } -function xmpp_plugin_admin(App $a, &$o) +function xmpp_addon_admin(App $a, &$o) { $t = get_markup_template("admin.tpl", "addon/xmpp/"); $o = replace_macros($t, [ - '$submit' => t('Save Settings'), - '$bosh_proxy' => ['bosh_proxy', t('Jabber BOSH host'), Config::get('xmpp', 'bosh_proxy'), ''], - '$central_userbase' => ['central_userbase', t('Use central userbase'), Config::get('xmpp', 'central_userbase'), t('If enabled, users will automatically login to an ejabberd server that has to be installed on this machine with synchronized credentials via the "auth_ejabberd.php" script.')], + '$submit' => L10n::t('Save Settings'), + '$bosh_proxy' => ['bosh_proxy', L10n::t('Jabber BOSH host'), Config::get('xmpp', 'bosh_proxy'), ''], + '$central_userbase' => ['central_userbase', L10n::t('Use central userbase'), Config::get('xmpp', 'central_userbase'), L10n::t('If enabled, users will automatically login to an ejabberd server that has to be installed on this machine with synchronized credentials via the "auth_ejabberd.php" script.')], ]); } -function xmpp_plugin_admin_post() +function xmpp_addon_admin_post() { $bosh_proxy = ((x($_POST, 'bosh_proxy')) ? trim($_POST['bosh_proxy']) : ''); $central_userbase = ((x($_POST, 'central_userbase')) ? intval($_POST['central_userbase']) : false); Config::set('xmpp', 'bosh_proxy', $bosh_proxy); Config::set('xmpp', 'central_userbase', $central_userbase); - info(t('Settings updated.') . EOL); + info(L10n::t('Settings updated.') . EOL); } function xmpp_script(App $a)