summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cdffd69)
raw | patch | inline | side by side (parent: cdffd69)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Mar 2008 10:53:11 +0000 (10:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Mar 2008 10:53:11 +0000 (10:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9731 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/admin/groups/mail/class_groupMail.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc
index 491203b9c8544b5cde80af90a5332e8ae76acee2..e192a00a39dc10144674d4592ac390311b6ce07d 100644 (file)
} elseif (($user= $this->addAlternate ($_POST['alternate_address'])) != ""){
$ui= get_userinfo();
if ($user != $ui->username){
- print_red (msgPool::duplicated(_("mail address")));
+ print_red (msgPool::duplicated(_("Mail address")));
}
}
}
/* must: mail */
if ($this->mail == ""){
- $message[]= _("The required field 'Primary address' is not set.");
+ $message[]= msgPool::required(_("Mail address"));
}
if (!tests::is_email($this->mail)){
- $message[]= _("Please enter a valid email addres in 'Primary address' field.");
+ $message[]= msgPool::invalid(_("Mail address"),"","",_("your-name@your-domain.com"));
}
$ldap->cd($this->config->current['BASE']);
$ldap->search ("(&(!(objectClass=gosaUserTemplate))(objectClass=gosaMailAccount)(|(mail=".$this->mail.")(gosaMailAlternateAddress=".
$this->mail."))(!(uid=".$this->orig_cn."))(!(cn=".$this->orig_cn.")))");
if ($ldap->count() != 0){
- $message[]= _("The primary address you've entered is already in use.");
+ $message[]= msgPool::duplicated(_("Mail address"));
}
/* Check quota */
if ($this->gosaMailQuota != '' && $this->acl_is_writeable("gosaMailQuota")){
if (!is_numeric($this->gosaMailQuota)) {
- $message[]= _("Value in 'Quota size' is not valid.");
+ $message[]= msgPool::invalid(_("Quota size"),$this->gosaMailQuota,"/[0-9]/");
} else {
$this->gosaMailQuota= (int) $this->gosaMailQuota;
}
/* Check rejectsize for integer */
if ($this->gosaMailMaxSize != '' && $this->acl_is_writeable("gosaMailQuota")){
if (!is_numeric($this->gosaMailMaxSize)){
- $message[]= _("Please specify a vaild mail size for mails to be rejected.");
+ $message[]= msgPool::msgPool::invalid(_("Mail max size"));
} else {
$this->gosaMailMaxSize= (int) $this->gosaMailMaxSize;
}
}
if(empty($this->gosaMailServer)){
- $message[] = _("Please select a valid mail server.");
+ $message[] = msgPool::requried(_("Mail server"));
}
return ($message);