summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b450d85)
raw | patch | inline | side by side (parent: b450d85)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Mar 2008 12:45:22 +0000 (12:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Mar 2008 12:45:22 +0000 (12:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9838 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc b/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc
index ff46610246200f0235b0ad4a79581a997e7cf9b4..c8835201944aaf70c9856a4070ae7b0908ef8121 100644 (file)
/* Do we represent a valid account? */
if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
- _("This account has no fax extensions.")."</b>";
+ msgPool::noValidExtension(_("GOfax"))."</b>";
$display.= back_to_main();
return ($display);
}
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);
}
}
/* 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);
/* 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
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"));
}
}