From: hickert Date: Thu, 3 Nov 2005 10:45:59 +0000 (+0000) Subject: Updated language detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=07afe650cb5ee56dc8c7b2666647c2b3692099a0;p=gosa.git Updated language detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1816 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/helpviewer.php b/html/helpviewer.php index 7de5c2ece..05f31f494 100644 --- a/html/helpviewer.php +++ b/html/helpviewer.php @@ -74,7 +74,8 @@ if(isset($_SESSION['helpobject'])){ $helpobject['helpconf'] = $_SESSION['plist']->gen_headlines(); } -$lang = preg_replace("/_.*$/","",get_browser_language()); +$lang = get_browser_language(); +$lang = $lang[0].$lang[1]; $helpobject['lang'] = $lang; $defaultpage = "index.html"; // alternative file, shown on error, or on first call