Code

default is now visible as _("inherited")
[gosa.git] / html / helpviewer.php
index 44377afbdea51ee786198e8a596823df7902cff3..a5710b20257a77fb3f65f78b4d7ffdb6b3dd458d 100644 (file)
@@ -26,6 +26,7 @@
 error_reporting(0);
 header("Content-type: text/html; charset=UTF-8");
 session_start();
+$config= $_SESSION['config'];
 
 /* If no config object is found in the session, abort help */
 if (!isset($_SESSION['config'])){
@@ -42,6 +43,7 @@ if ($config->data['MAIN']['LANG'] == ""){
 }
 
 $lang.=".UTF-8";
+
 putenv("LANGUAGE=");
 putenv("LANG=$lang");
 setlocale(LC_ALL, $lang);
@@ -67,14 +69,13 @@ if (isset ($config->data['MAIN']['COMPILE'])){
 if(isset($_SESSION['helpobject'])){
   $helpobject = $_SESSION['helpobject'];
 }else{
-  $helpobject['lang']         = "en"
+  $helpobject['lang']         = $lang
   $helpobject['helpconf']     = array();  
   $helpobject['currentplug']  = "";
   $helpobject['file']         = "index.html";
   $helpobject['helpconf']     = $_SESSION['plist']->gen_headlines();
 }
 
-$lang =  get_browser_language();
 $lang = $lang[0].$lang[1];
 
 $helpobject['lang']           = $lang;  
@@ -90,7 +91,6 @@ $backward =$defaultpage;
 $index    =$defaultpage;
 $forward  ="node1.html";
 
-
 /* Every class which is called within a tab, stores its name in the Session.
  * If $_SESSION['current_class_for_help'] isset, 
  *  get the helpfile specified in the xml file and display it.