From c2f9a760f45eae7202e212f5598b331fa89879b9 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 13 Aug 2007 14:11:30 +0000 Subject: [PATCH] Removed gosa stuff from external code. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7051 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/accept-to-gettext.inc | 8 -------- include/functions.inc | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) 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(); -- 2.30.2