summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9eacf08)
raw | patch | inline | side by side (parent: 9eacf08)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Aug 2007 14:11:30 +0000 (14:11 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Aug 2007 14:11:30 +0000 (14:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7051 594d385d-05f5-0310-b6e9-bd551577e9d8
include/accept-to-gettext.inc | patch | blob | history | |
include/functions.inc | patch | blob | history |
index a108cc21c044f5968e87f32f042dde8ec372efc5..52647c6606ece6f98932726eaa88c394c248a2b4 100644 (file)
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 be17de81fe9af4635bfeefddf00f4d266d4256bb..5358c6f097ac7d0a780ecc27bff3e7a487ee3b0a 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
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();