Code

Some changes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Oct 2005 12:23:13 +0000 (12:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Oct 2005 12:23:13 +0000 (12:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1687 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printerPPDDialog.inc

index cbdad741d60f2177ce47c5009432c04a5258df8f..1b4c5a39633a788f0332102f7eb8e8cfa0cacb11 100644 (file)
@@ -168,7 +168,7 @@ class printerPPDDialog extends plugin
     if((!empty($this->selectedPPD['link']))&&(file_exists($this->selectedPPD['link']))){
     
       /* If there is no initial Configuration, load it */
-      if($this->ppdConfig != false){
+      if($this->ppdConfig == false){
         $this->ppdConfig = $this->ppdManager->loadProperties($this->selectedPPD['link']);
       }
 
@@ -229,11 +229,11 @@ class printerPPDDialog extends plugin
             /* If type is Boolean & no values are given */
             $str  .=  "<select name='".base64_encode($name)."'>\n";
             if($default == "False"){
-              $str  .=    "<option value='true' >True</option>\n";
-              $str  .=    "<option value='false' selected>False</option>\n";
+              $str  .=    "<option value='True' >"._("True")."</option>\n";
+              $str  .=    "<option value='False' selected>"._("False")."</option>\n";
             }else{
-              $str  .=    "<option value='true' selected>True</option>\n";
-              $str  .=    "<option value='false' >False</option>\n";
+              $str  .=    "<option value='True' selected>"._("True")."</option>\n";
+              $str  .=    "<option value='False' >"._("False")."</option>\n";
             }          
             $str  .=  "</select>\n";