Code

Applied patch : 4112 (Translation tags were missing in FAIPartitionTable)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 04:28:24 +0000 (04:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 04:28:24 +0000 (04:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4666 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTableEntry.inc

index 7ff8798d1e152f4f9d5a3a7d3bbb68390113a461..cc2c0619c966a059d67f13eb06aaa35dfa0fda1a 100644 (file)
@@ -182,7 +182,7 @@ class faiPartitionTableEntry extends plugin
   function generateParts()
   {
     /* Define Arrays with allowed syntax */
-    $PartitionTypes   = array("primary","logical");
+    $PartitionTypes   = array("primary"=>_("primary"),"logical"=>_("logical"));
     $FAIfsTypes       = array("ext2","ext3","xfs","swap","reiserfs","dosfat16","winfat32");
 
     /* Display Header */
@@ -221,11 +221,11 @@ class faiPartitionTableEntry extends plugin
         /* Generate Partition select box  
          */
         $PartitionType = "<select name='FAIpartitionType_".$key."' id='FAIpartitionType_".$key."' ".$disableALL.">";
-        foreach($PartitionTypes as $type){
+        foreach($PartitionTypes as $type => $PTname){
           if($part['FAIpartitionType'] == $type){
-            $PartitionType .="<option value='".$type."' selected >".$type."</option>";
+            $PartitionType .="<option value='".$type."' selected >".$PTname."</option>";
           }else{
-            $PartitionType .="<option value='".$type."'>".$type."</option>";
+            $PartitionType .="<option value='".$type."'>".$PTname."</option>";
           }
         }        
         $PartitionType.="</select>";