summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 349151a)
raw | patch | inline | side by side (parent: 349151a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Mar 2008 13:14:01 +0000 (13:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Mar 2008 13:14:01 +0000 (13:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9843 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc
index 30e330337476cf36d63b667d62462efadb77250c..e6a15e66cb4af6a155d5d202ed170b3d8009fcb8 100644 (file)
*/
if(!count($this->goFonHomeServers)){
if($save){
- msg_dialog::display(_("Configuration error"), _("There is currently no asterisk server defined!"), WARNING_DIALOG);
+ msg_dialog::display(_("Configuration error"), msgPool::noserver(_("GOfon")), WARNING_DIALOG);
}
return(true);
}
/* Check if Mysql extension is available */
if(!is_callable("mysql_pconnect")){
if($save){
- msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "mysql"), WARNING_DIALOG);
+ msg_dialog::display(_("Configuration error"), msgPool::missingext("php-mysql"), WARNING_DIALOG);
}
return(true);
}
/* 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 phone extensions.")."</b>";
+ msgPool::noValidExtension(_("Phone"))."</b>";
$display.= back_to_main();
return ($display);
}
/* 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 phone extensions.")."</b>";
+ msgPool::noValidExtension(_("Phone"))."</b>";
$display.= back_to_main();
return($display);
}
if (!$this->multiple_support_active && $this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove phone account"),
- _("This account has phone features enabled. You can disable them by clicking below."));
+ msgPool::featuresEnabled(_("Phone")));
} else {
if(empty($this->uid)){
$display= $this->show_enable_header(_("Create phone account"),
- _("This account has phone features disabled. You can't enable them while no uid is set."),TRUE,TRUE);
+ msgPool::featuresDisabled(_("Phone"),_("User uid")));
}else{
$display= $this->show_enable_header(_("Create phone account"),
- _("This account has phone features disabled. You can enable them by clicking below."));
+ msgPool::featuresDisabled(_("Phone")));
}
return ($display);
}
/* check if there is a FON server created */
if(!count($this->goFonHomeServer)){
- msg_dialog::display(_("Configuration error"), _("There is currently no asterisk server defined!"), WARNING_DIALOG);
+ msg_dialog::display(_("Configuration error"), msgPool::noserver(_("GOfon")), WARNING_DIALOG);
}
/* Create html parameter table for selected macro parameters
}
}
}else{
- msg_dialog::display(_("Configuration error"), sprintf(_("Missing %s PHP extension!"), "mysql"), WARNING_DIALOG);
+ msg_dialog::display(_("Configuration error"), msgPool::missingext("php-mysql"), WARNING_DIALOG);
return false;
}