From bfc8d3e3ab8874d73af0d33c14de017c2bde54df Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Mar 2008 07:52:04 +0000 Subject: [PATCH] Updated message strings, replace with msgPool git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9284 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/pureftpd/class_pureftpdAccount.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/pureftpd/personal/connectivity/pureftpd/class_pureftpdAccount.inc b/gosa-plugins/pureftpd/personal/connectivity/pureftpd/class_pureftpdAccount.inc index ad2cba40b..6f7e56589 100644 --- a/gosa-plugins/pureftpd/personal/connectivity/pureftpd/class_pureftpdAccount.inc +++ b/gosa-plugins/pureftpd/personal/connectivity/pureftpd/class_pureftpdAccount.inc @@ -185,23 +185,24 @@ class pureftpdAccount extends plugin if ($this->is_account){ if($this->acl_is_writeable("FTPUploadBandwidth") && !tests::is_id($this->FTPUploadBandwidth)){ - $message[]= _("Value specified as 'Upload bandwidth' is not valid."); + $message[]= msgPool::invalid(_("Upload bandwidth"), $this->uid, "/^[0-9]+$/"); } if($this->acl_is_writeable("FTPDownloadBandwidth") && !tests::is_id($this->FTPDownloadBandwidth)){ - $message[]= _("Value specified as 'Download bandwidth' is not valid."); + $message[]= msgPool::invalid(_("Download bandwidth"), $this->uid, "/^[0-9]+$/"); } if($this->acl_is_writeable("FTPQuotaFiles") && !tests::is_id($this->FTPQuotaFiles)){ - $message[]= _("Value specified as 'Quota files' is not valid."); + $message[]= msgPool::invalid(_("Quota file"), $this->uid, "/^[0-9]+$/"); } if($this->acl_is_writeable("FTPQuotaMBytes") && !tests::is_id($this->FTPQuotaMBytes)){ - $message[]= _("Value specified as 'Quota size' is not valid."); + $message[]= msgPool::invalid(_("Quota size"), $this->uid, "/^[0-9]+$/"); } if($this->acl_is_writeable("FTPUploadRatio") && !tests::is_id($this->FTPUploadRatio)){ $message[]= _("Value specified as 'Upload ratio' is not valid."); + $message[]= msgPool::invalid(_("Upload ratio"), $this->uid, "/^[0-9]+$/"); } if($this->acl_is_writeable("FTPDownloadRatio") && !tests::is_id($this->FTPDownloadRatio)){ - $message[]= _("Value specified as 'Download ratio' is not valid."); + $message[]= msgPool::invalid(_("Download ratio"), $this->uid, "/^[0-9]+$/"); } } -- 2.30.2