Code

Updated print_red's
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jan 2008 13:16:40 +0000 (13:16 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jan 2008 13:16:40 +0000 (13:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8387 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/connectivity/class_opengwAccount.inc
gosa-core/plugins/personal/connectivity/class_oxchangeAccount.inc
gosa-core/plugins/personal/password/class_password.inc
gosa-core/plugins/personal/scalix/class_scalixAccount.inc

index 920c62e0ffb92478ce81d154acdfa2a5f7eb1881..e2b4f5e03e40f9d10b9d49d80532d3ff1f9e954b 100644 (file)
@@ -164,7 +164,7 @@ class opengwAccount extends plugin
 
                /* Check database extension */    
                if(!is_callable("pg_connect") && count($this->serverCon)){
-      msg_dialog::display(_("Configuration error"), _("Missing postgresql extension!"), ERROR_DIALOG);
+      msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "postgresql"), ERROR_DIALOG);
                }elseif(count($this->serverCon)){
 
                        /* Check if config exists */
index 410be0a50812f7c4eed188fe9e197fa2a339656f..6561ab14c8a7634fbb4a0d7c18aa65f8d8131871 100644 (file)
@@ -728,7 +728,7 @@ class oxchangeAccount extends plugin
         return;
       }
     }else{
-      msg_dialog::display(_("Configuration error"), _("Missing postgresql extension!"), ERROR_DIALOG);
+      msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "postgresql"), ERROR_DIALOG);
       return;
     }
 
@@ -833,7 +833,7 @@ class oxchangeAccount extends plugin
           return;
         }
       }else{
-        msg_dialog::display(_("Configuration error"), _("Missing postgresql extension!"), ERROR_DIALOG);
+        msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "postgresql"), ERROR_DIALOG);
         return;
       }
     }
index 2a4df8481964d61e4f26af68fd68d9228b5f9d51..73944131d221fb9ca06f3ff6a46eaaabb9e6ef78 100644 (file)
@@ -110,7 +110,7 @@ class password extends plugin
           /* Check GOsa permissions */
           if (!preg_match("/w/i",$password_ACLS)){
             msg_dialog::display(_("User password"),
-                                _("You have no permissions to change your password."),WARNING_DIALOG);
+                                _("You have no permission to change your password."),WARNING_DIALOG);
           }else{
             change_password ($ui->dn, $_POST['new_password']);
             gosa_log ("User/password has been changed");
index 0a7b1c2661406809c522e83a5464719c952a1723..c64181448b710b4d4775c57957de5dccd63dc66f 100644 (file)
@@ -251,7 +251,7 @@ class scalixAccount extends plugin
 
         /* Check write access */
         if(!$this->acl_is_writeable("scalixEmailAddress")){
-          print_red(_("You are not allowed to modify alternate addresses"));
+         msg_dialog::display(_("Error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
         }else{
 
           /* Mail address already in use ? */
@@ -268,7 +268,7 @@ class scalixAccount extends plugin
       /* Delete email addresses */
       if (isset($_POST['delete_email']) && isset ($_POST['emails_list'])){
         if(!$this->acl_is_writeable("scalixEmailAddress")){
-          print_red(_("You are not allowed to modify alternate addresses"));
+         msg_dialog::display(_("Error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
         }else{
           if (count($_POST['emails_list'])){
             $this->delEmail ($_POST['emails_list']);