X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fpgettext.php;h=b42dcec119c76ca02af9e738627df22e2db60fb4;hb=3ca70e6362c53d002fe31cb46e9636fb78a446c8;hp=fb87798ff72712b74acccc8f2d4a93bf6b5ba1f4;hpb=e8e1f9253da63a11c813708f5baaeba2d9f537f3;p=friendica.git diff --git a/include/pgettext.php b/include/pgettext.php index fb87798ff7..b42dcec119 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'); }}