summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d962060)
raw | patch | inline | side by side (parent: d962060)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Mar 2008 11:06:19 +0000 (11:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Mar 2008 11:06:19 +0000 (11:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9734 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc | patch | blob | history | |
gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc
index 456cf30ba0f06e31994048a27118ce5ef0126761..f5462a3e41bc9146b34b91d1979d932b26a89a8f 100644 (file)
{
$message = plugin::check();
if(empty($this->cn)){
- $message[] = _("Please specify a valid name for this mime type.");
+ $message[] = msgPool::required(_("Name"));
}
if(!count($this->use_gotoMimeFilePattern)){
- $message[] = _("Please specify at least one file pattern.") ;
+ $message[] = msgPool::required(_("File pattern"));
}
/* Check if there is already a mime type with this cn */
if($ldap->count()){
$attrs = $ldap->fetch();
if($this->dn != $attrs['dn']) {
- $message[]= _("There's already a mime type with this 'Name'.");
+ $message[]= msgPool::duplicated(_("Name"));
}
}
}else{
if ($ldap->count()){
$attrs = $ldap->fetch();
if($this->dn != $attrs['dn']) {
- $message[]= _("There's already an mime with this 'Name'.");
+ $message[]= msgPool::duplicated(_("Name"));
}
}
}
diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc
index 89bc5745e137c947e00e7d621b4c39cf251f317c..72ef0a03e0d1f41c15738b199fb1cf1e2232b222 100644 (file)
}
/* Lock the current entry, so nobody will edit it during deletion */
- $smarty->assign("info", msgPool::deleteInfo($dns_names,_("mimetype")));
+ $smarty->assign("info", msgPool::deleteInfo($dns_names,_("Mime type")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
} else {
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
- print_red (_("You are not allowed to delete this mime type!"));
+ print_red (msgPool::deleteInfo());
new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
/* Remove lock file after successfull deletion */
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
$smarty= get_smarty();
- $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("mimetype")));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("Mime type")));
$smarty->assign("multiple", false);
return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
} else {
/* Obviously the user isn't allowed to delete. Show message and
clean session. */
- print_red (_("You are not allowed to delete this mime type!"));
+ print_red (msgPool::permDelete());
}
}
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
- print_red (_("You are not allowed to delete this mime type!"));
+ print_red (msgPool::permDelete());
new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
}