Code

Re-added i18n
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Feb 2010 07:40:10 +0000 (07:40 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Feb 2010 07:40:10 +0000 (07:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15728 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pluglist.inc

index fd21d03aa65b90892a45f7e8e21164d35679cb05..d6a67ca1255704768d7769030a5e7f69f274a10e 100644 (file)
@@ -191,12 +191,12 @@ class pluglist {
         if(!count($plug)) continue;
         $menu.= "\n<div class='menu'>";
         $menu.= "\n <ul>";
-        $menu.= "\n  <li class='menu-header'>".$headline."</li>";
+        $menu.= "\n  <li class='menu-header'>"._($headline)."</li>";
         $id = 0;
-                               foreach ($plug as $info){
+       foreach ($plug as $info){
           $id ++;
           $vars= get_class_vars($info['CLASS']);
-          $plHeadline = (isset($info['NAME'])) ? $info['NAME'] : $vars['plHeadline'];
+          $plHeadline = _((isset($info['NAME'])) ? $info['NAME'] : $vars['plHeadline']);
           $plDescription= $vars['plDescription'];
                                        $index= $this->get_index($info['CLASS']);
                                        $href= "main.php?plug=$index&amp;reset=1";