X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fpgettext.php;h=9b541e8e3c77f6fe1cc3bd776a0490145af3ffe7;hb=ac65423de1586295857b76f0d6900e484acd9461;hp=fb87798ff72712b74acccc8f2d4a93bf6b5ba1f4;hpb=63610c7b73fcaf862adbf880d4968dd2b1678d9b;p=friendica.git diff --git a/include/pgettext.php b/include/pgettext.php index fb87798ff7..9b541e8e3c 100644 --- a/include/pgettext.php +++ b/include/pgettext.php @@ -10,6 +10,8 @@ * */ +use Friendica\Core\Config; + require_once("include/dba.php"); if(! function_exists('get_browser_language')) { @@ -42,17 +44,17 @@ function get_browser_language() { // check if we have translations for the preferred languages and pick the 1st that has for ($i=0; $iconfig['system']['language'])) ? $a->config['system']['language'] : 'en'); + return Config::get('system', 'language', 'en'); }}