Code

Updated templates to use msgPool Buttons
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Mar 2008 10:43:01 +0000 (10:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Mar 2008 10:43:01 +0000 (10:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9487 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/personal/environment/class_environment.inc
gosa-plugins/goto/personal/environment/hotplugDialog.tpl
gosa-plugins/goto/personal/environment/logonManagement.tpl
gosa-plugins/goto/personal/environment/selectPrinterDialog.tpl

index deb06944b44abce34030c30d699f4b046a9043ac..b6ccc948efff0083a34865c1e23a60d3e1c5d8e5 100644 (file)
@@ -546,7 +546,7 @@ class environment extends plugin
     if(isset($_POST['LogonSave'])){
 
       if(!$this->acl_is_writeable("gotoLogonScript")){
-        msg_dialog::display(_("Permission error"), _("You have no permission to modify logon scripts!"), ERROR_DIALOG);
+        msg_dialog::display(_("Permission error"), msgPool::permModify(_("Logon scripts")), ERROR_DIALOG);
         unset($this->dialog);
         $this->dialog=FALSE;
         $this->is_dialog=false;
@@ -1110,7 +1110,7 @@ class environment extends plugin
     } 
     if(!$this->is_group){
       if((!((in_array("posixAccount",$this->attrs['objectClass']))||($this->parent->by_object['posixAccount']->is_account==true)))&&(!$this->is_group)){
-        $message[]=(_("You need to enable POSIX features in order to enable evironment features!"));  
+        $message[]= msgPool::featuresDisabled(_("environemnt"),_("POSIX"));  
       }
     }
     return ($message);
index 868e72b00209950367b6decae10ff5a8be56640b..fd16778f06a65262ecd7d0b52496709ced5269ef 100644 (file)
@@ -60,8 +60,8 @@
     <p class="seperator">&nbsp;</p>
 
     <p align="right">
-    <input type="submit" name="HotPlugSave"     value="{t}Add{/t}">
-    <input type="submit" name="HotPlugCancel"   value="{t}Cancel{/t}">
+    <input type="submit" name="HotPlugSave"     value="{msgPool type=okButton}">
+    <input type="submit" name="HotPlugCancel"   value="{msgPool type=cancelButton}">
     </p>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
index 746be6fe17269d6efdeafae3920fdc44bc5fc309..f4b05569677ea6e87ecc09bbc6cbf58d60cd7c60 100644 (file)
@@ -72,8 +72,8 @@
 
        <p class="seperator">&nbsp;</p>
     <p align="right">
-    <input type="submit" name="LogonSave"     value="{t}Apply{/t}">
-    <input type="submit" name="LogonCancel"   value="{t}Cancel{/t}">
+    <input type="submit" name="LogonSave"     value="{msgPool type=applyButton}">
+    <input type="submit" name="LogonCancel"   value="{msgPool type=cancelButton}">
     </p>
 
 <script language="JavaScript" type="text/javascript">
index f07674d39baf1fce20ca0f7367bca2e40300a2b7..ed9dc189b99fff67ed48e210268bc0ce00c889bf 100644 (file)
@@ -62,8 +62,8 @@
 
     <p class="seperator">&nbsp;</p>
     <p align="right">
-    <input type="submit" name="PrinterSave"     value="{t}Add{/t}">
-    <input type="submit" name="PrinterCancel"   value="{t}Cancel{/t}">
+    <input type="submit" name="PrinterSave"     value="{msgPool type=okButton}">
+    <input type="submit" name="PrinterCancel"   value="{msgPool type=cancelButton}">
     </p>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page