X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fpgettext.php;h=9b541e8e3c77f6fe1cc3bd776a0490145af3ffe7;hb=fd5d058156185c6c02c1285a794139d07f4d13ce;hp=fb87798ff72712b74acccc8f2d4a93bf6b5ba1f4;hpb=ff569756ee6c5e058700cf6428918f059525e77c;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'); }}