From f72a4f2fb2a8b781dd6d2cd35b9006ac6df536b6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Mar 2008 12:45:22 +0000 Subject: [PATCH] msgPool git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9838 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofax/gofax/faxaccount/class_gofaxAccount.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc b/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc index ff4661024..c88352019 100644 --- a/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc +++ b/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc @@ -161,7 +161,7 @@ class gofaxAccount extends plugin /* Do we represent a valid account? */ if (!$this->is_account && $this->parent === NULL){ $display= "\"\" ". - _("This account has no fax extensions.").""; + msgPool::noValidExtension(_("GOfax")).""; $display.= back_to_main(); return ($display); } @@ -171,10 +171,10 @@ class gofaxAccount extends plugin if ($this->parent !== NULL){ if ($this->is_account){ $display= $this->show_disable_header(_("Remove fax account"), - _("This account has fax features enabled. You can disable them by clicking below.")); + msgPool::featuresEnabled(_("GOfax"))); } else { $display= $this->show_enable_header(_("Create fax account"), - _("This account has fax features disabled. You can enable them by clicking below.")); + msgPool::featuresDisabled(_("GOfax"))); return ($display); } } @@ -238,7 +238,7 @@ class gofaxAccount extends plugin /* Add number to blocklist (dialog) */ if (isset($_POST['add_blocklist_number']) && $_POST['block_number'] != ""){ if (!tests::is_phone_nr($_POST['block_number'])){ - msg_dialog::display(_("Error"), _("Phone number is not valid!"), ERROR_DIALOG); + msg_dialog::display(_("Error"), msgPool::invalid(_("Phone number")), ERROR_DIALOG); } else { array_push($this->current_blocklist, $_POST['block_number']); $this->current_blocklist= array_unique($this->current_blocklist); @@ -671,11 +671,11 @@ class gofaxAccount extends plugin /* must: facsimileTelephoneNumber */ if ($this->facsimileTelephoneNumber == ""){ - $message[]= _("Fax is empty!"); + $message[]= msgPool::required(_("Faxi number")); } if (!tests::is_phone_nr($this->facsimileTelephoneNumber)){ - $message[]= _("Fax number is not valid!"); + $message[]= msgPool::invalid(_("Fax number"),$this->facsimileTelephoneNumber,"/[0-9]/"); } /* IF mail is specified (which is only the case if there's no mail account @@ -685,7 +685,7 @@ class gofaxAccount extends plugin if ($this->mail == ""){ $message[]= _("Mail delivery is requested without target address!"); } elseif (!tests::is_email($this->mail)){ - $message[]= _("Mail address is invalid!"); + $message[]= msgPool::invalid(_("Mail address"),"","",_("your-name@your-domain.com")); } } -- 2.30.2