From: cajus Date: Mon, 13 Aug 2007 14:11:30 +0000 (+0000) Subject: Removed gosa stuff from external code. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c2f9a760f45eae7202e212f5598b331fa89879b9;p=gosa.git Removed gosa stuff from external code. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7051 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/accept-to-gettext.inc b/include/accept-to-gettext.inc index a108cc21c..52647c660 100644 --- a/include/accept-to-gettext.inc +++ b/include/accept-to-gettext.inc @@ -87,14 +87,6 @@ function find_match($curlscore,$curcscore,$curgtlang,$langval,$charval, function al2gt($gettextlangs, $mime) { - /* Try to use users primary language */ - $ui= get_userinfo(); - if ($ui != NULL){ - if ($ui->language != ""){ - return ($ui->language.".UTF-8"); - } - } - /* default to "everything is acceptable", as RFC2616 specifies */ $acceptLang=(($_SERVER["HTTP_ACCEPT_LANGUAGE"] == '') ? '*' : $_SERVER["HTTP_ACCEPT_LANGUAGE"]); diff --git a/include/functions.inc b/include/functions.inc index be17de81f..5358c6f09 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -149,6 +149,14 @@ function DEBUG($level, $line, $function, $file, $data, $info="") function get_browser_language() { + /* Try to use users primary language */ + $ui= get_userinfo(); + if ($ui != NULL){ + if ($ui->language != ""){ + return ($ui->language.".UTF-8"); + } + } + /* Load supported languages */ $gosa_languages= get_languages();