summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d670a9e)
raw | patch | inline | side by side (parent: d670a9e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Mar 2008 13:58:01 +0000 (13:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Mar 2008 13:58:01 +0000 (13:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9743 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc
index cfe9b34f1285be7eec7c565d2b38004c6eb0f02c..902bdad9d9f0124338b3389cae0a00a7a17eb5d3 100644 (file)
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
- _("This 'dn' has no phone features.")."</b>";
+ msgPool::noValidExtension(_("phone"))."</b>";
return($display);
}
/* To check for valid ip*/
if($this->netConfigDNS->ipHostNumber == ""){
- $message[]= _("IP address is not set!");
+ $message[]= msgPool::required(_("IP address"));
} else {
if (!tests::is_ip($this->netConfigDNS->ipHostNumber)){
- $message[]= _("IP address is not valid!");
+ $message[]= msgPool::invalid(_("IP address"));
}
}
/* Check if given name is a valid host/dns name */
if(!tests::is_dns_name($this->cn) ){
- $message[] = _("Name is not valid!");
+ $message[] = msgPool::invalid(_("Name"));
}
if ($this->cn == ""){
- $message[]= _("Name is not set!");
+ $message[]= msgPool::required(_("Name"));
}
if ($this->cn == "0"){
- $message[]= _("'0' is a reserved name and cannot be used!");
+ $message[]= msgPool::reserved(_("Name"));
}
if ($this->orig_dn != $this->dn){
}
if ($attrs['dn'] != $this->orig_dn){
- $message[]= _("Name is already in use!");
+ $message[]= msgPool::duplicated(_("Name"));
break;
}
}