From: cajus Date: Wed, 16 Jan 2008 13:16:40 +0000 (+0000) Subject: Updated print_red's X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1640184238ba70f927ef61d2aa2c7a0c73517891;p=gosa.git Updated print_red's git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8387 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/connectivity/class_opengwAccount.inc b/gosa-core/plugins/personal/connectivity/class_opengwAccount.inc index 920c62e0f..e2b4f5e03 100644 --- a/gosa-core/plugins/personal/connectivity/class_opengwAccount.inc +++ b/gosa-core/plugins/personal/connectivity/class_opengwAccount.inc @@ -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 */ diff --git a/gosa-core/plugins/personal/connectivity/class_oxchangeAccount.inc b/gosa-core/plugins/personal/connectivity/class_oxchangeAccount.inc index 410be0a50..6561ab14c 100644 --- a/gosa-core/plugins/personal/connectivity/class_oxchangeAccount.inc +++ b/gosa-core/plugins/personal/connectivity/class_oxchangeAccount.inc @@ -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; } } diff --git a/gosa-core/plugins/personal/password/class_password.inc b/gosa-core/plugins/personal/password/class_password.inc index 2a4df8481..73944131d 100644 --- a/gosa-core/plugins/personal/password/class_password.inc +++ b/gosa-core/plugins/personal/password/class_password.inc @@ -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"); diff --git a/gosa-core/plugins/personal/scalix/class_scalixAccount.inc b/gosa-core/plugins/personal/scalix/class_scalixAccount.inc index 0a7b1c266..c64181448 100644 --- a/gosa-core/plugins/personal/scalix/class_scalixAccount.inc +++ b/gosa-core/plugins/personal/scalix/class_scalixAccount.inc @@ -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']);