summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c1811b)
raw | patch | inline | side by side (parent: 6c1811b)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 8 Mar 2008 11:03:30 +0000 (11:03 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 8 Mar 2008 11:03:30 +0000 (11:03 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9455 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/personal/mail/class_mailAccount.inc | patch | blob | history | |
gosa-plugins/mail/personal/mail/main.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc
index 028c56517b1e1cc994bea049a4f940da5960d99b..3c2393106a411c9159383bce5213cf6011bda43d 100644 (file)
if ($cls && class_exists($cls)){
$this->method= $cls;
} else {
- msg_dialog::display(_("Configuration error"), sprintf(_("Unkown mail method '%s' specified!"), $method), ERROR_DIALOG);
+ msg_dialog::display(_("Configuration error"), sprintf(_("Mail method '%s' is unknown!"), $method), ERROR_DIALOG);
}
}
if(!$this->multiple_support_active){
if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
- _("This account has no mail extensions.")."</b>";
+ msgPool::noValidExtension(_("Mail"))."</b>";
$display.= back_to_main();
return ($display);
if ($this->parent !== NULL){
if ($this->is_account){
if($this->accountDelegationsConfigured()){
- $display= $this->show_disable_header(_("Remove mail account"),
- _("This account can't be removed while there are delegations configured. Remove those delegations first."),TRUE,TRUE);
+ $display= $this->show_disable_header(msgPool::removeFeaturesButton(_("Mail")),
+ _("Mail settings cannot be removed while there are delegations configured!"),TRUE,TRUE);
}else{
- $display= $this->show_disable_header(_("Remove mail account"),
- _("This account has mail features enabled. You can disable them by clicking below."));
+ $display= $this->show_disable_header(msgPool::removeFeaturesButton(_("Mail")),
+ msgPool::featuresEnabled(_("Mail")));
}
} else {
- $display= $this->show_enable_header(_("Create mail account"), _("This account has mail features disabled. You can enable them by clicking below."));
+ $display= $this->show_enable_header(msgPool::addFeaturesButton(_("Mail")),
+ msgPool::featuresDisabled(_("Mail")));
return ($display);
}
}
}
} elseif ($address == $this->mail
|| in_array($address, $this->gosaMailAlternateAddress)) {
- msg_dialog::display(_("Error"),_("Cannot add your primary address to the list of forwarders.") , ERROR_DIALOG);
+ msg_dialog::display(_("Error"),_("Cannot add primary address to the list of forwarders!") , ERROR_DIALOG);
} else {
$valid= TRUE;
}
$ui= get_userinfo();
if ($user != $ui->username){
msg_dialog::display(_("Error"), msgPool::duplicated(_("Mail address"))." ".
- sprintf(_("Already used by user '%s'."), $user), ERROR_DIALOG);
+ sprintf(_("Address is already in use by user '%s'."), $user), ERROR_DIALOG);
}
}
}
$message= plugin::check();
if(empty($this->gosaMailServer)){
- $message[]= _("There is no valid mailserver specified, please add one in the system setup.");
+ $message[]= msgPool::noserver(_("Mail"));
}
/* must: mail */
reset ($this->gosaMailForwardingAddress);
$this->is_modified= TRUE;
}else{
- msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
+ msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses!"), ERROR_DIALOG);
}
}
$this->gosaMailForwardingAddress= array_remove_entries ($addresses, $this->gosaMailForwardingAddress);
$this->is_modified= TRUE;
}else{
- msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
+ msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses!"), ERROR_DIALOG);
}
}
reset ($this->gosaMailAlternateAddress);
return ("");
}else{
- msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
+ msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses!"), ERROR_DIALOG);
}
}
$this->gosaMailAlternateAddress= array_remove_entries ($addresses,$this->gosaMailAlternateAddress);
$this->is_modified= TRUE;
}else{
- msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
+ msg_dialog::display(_("Permission error"), _("You have no permission to modify these addresses!"), ERROR_DIALOG);
}
}
if($ldap->count()){
$attrs = $ldap->fetch();
if(isset($attrs['kolabDeleteFlag'])){
- return(_("Waiting for kolab to remove mail properties."));
+ return(_("Waiting for kolab to remove mail properties..."));
}elseif(in_array("gosaMailAccount",$attrs['objectClass'])){
- return(_("Please remove the mail account first, to allow kolab to call its remove methods."));
+ return(_("Please remove the mail settings first to allow kolab to call its remove methods!"));
}
}
}
$message = plugin::multiple_check();
if(empty($this->gosaMailServer) && in_array("gosaMailServer",$this->multi_boxes)){
- $message[]= _("There is no valid mailserver specified, please add one in the system setup.");
+ $message[]= msgPool::noserver(_("Mail"));
}
/* Check quota */
index 73877b2e8e99da3e2c3705a703967d3ef52a213a..3909b6a970393d17d6fddcda1eb762cb8adb436c 100644 (file)
/* Are we in edit mode? */
if (session::is_set('edit')){
- $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
+ $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
$display.= " ";
- $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+ $display.= "<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
$info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').
"\"> ".$ui->dn." ";
} else {
"\"> ".$ui->dn." ";
$info.= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lamp.png').
- "\"> "._("Click the 'Edit' button below to change informations in this dialog");
+ "\"> ".msgPool::clickEditToChange();
if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/mailAccount"))){
- $display.= "<input type=submit name=\"edit\" value=\""._("Edit")."\">\n";
+ $display.= "<input type=submit name=\"edit\" value=\"".msgPool::editButton()."\">\n";
}
$display.= "<input type=\"hidden\" name=\"ignore\">\n";