X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=xmpp%2Fxmpp.php;h=bd5adb574e2714513e779c867569a98e2a9f272c;hb=bd6ec212c19ea9f5fc34e20e6992bea7249b9836;hp=2548005ee7564042bc472b429fa764cdfaef52cb;hpb=c6e5bc3429c9c610895ba826d841cddd8c0f378b;p=friendica-addons.git diff --git a/xmpp/xmpp.php b/xmpp/xmpp.php index 2548005e..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() @@ -105,9 +105,9 @@ 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.')], ]); } @@ -117,7 +117,7 @@ function xmpp_addon_admin_post() $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)