From e831fa760a41fe88c1f31dd5dd268a7569f0b2cd Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 13 Mar 2008 13:58:01 +0000 Subject: [PATCH] msgPool git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9743 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/gofon/class_phoneGeneric.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc index cfe9b34f1..902bdad9d 100644 --- a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc +++ b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc @@ -116,7 +116,7 @@ class phoneGeneric extends plugin /* Do we represent a valid phone? */ if (!$this->is_account && $this->parent === NULL){ $display= "\"\" ". - _("This 'dn' has no phone features.").""; + msgPool::noValidExtension(_("phone")).""; return($display); } @@ -323,23 +323,23 @@ class phoneGeneric extends plugin /* 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){ @@ -354,7 +354,7 @@ class phoneGeneric extends plugin } if ($attrs['dn'] != $this->orig_dn){ - $message[]= _("Name is already in use!"); + $message[]= msgPool::duplicated(_("Name")); break; } } -- 2.30.2