Code

Added translation tags to faiPartitionTable type
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Jul 2006 06:24:13 +0000 (06:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Jul 2006 06:24:13 +0000 (06:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4112 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>";