summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: deda615)
raw | patch | inline | side by side (parent: deda615)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 13:14:40 +0000 (13:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 13:14:40 +0000 (13:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9712 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc
index 1410422baaa458d03cb8ae9e1b79d4ed2400ef35..198d1114a32d0d16ad5393cd59223382570a4ef3 100644 (file)
/* Do we represent a valid group? */
if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
- _("This 'dn' is no application.")."</b>";
+ msgPool::noValidExtension(_("application"))."</b>";
return ($display);
}
$message= plugin::check();
if(!preg_match("#^/#",$this->gosaApplicationExecute)){
- $message[]=(_("Specified execute path must start with '/'."));
+ $message[]=msgPool::invalid(_("Execute path"),"","","/some/path");
}
/* Permissions for that base? */
/* All required fields are set? */
if ($this->cn == ""){
- $message[]= _("Required field 'Name' is not filled.");
+ $message[]= msgPool::required(_("Name"));
}
if(preg_match("/[^a-z0-9]/",$this->cn)) {
- $message[]=_("Invalid character in application name. Only a-z 0-9 are allowed.");
+ $message[]=msgPool::invalid(_("Name"),$this->cn,"/^[a-z0-9]*$/");
}
if ($this->gosaApplicationExecute == ""){
- $message[]= _("Required field 'Execute' is not filled.");
+ $message[]= msgPool::required(_("Execute"));
}
/* Check for existing application */
if($ldap->count()){
$attrs = $ldap->fetch();
if($this->dn != $attrs['dn']) {
- $message[]= _("There's already an application with this 'Name'.");
+ $message[]= msgPool::duplicate("cn");
}
}
}else{
if ($ldap->count()){
$attrs = $ldap->fetch();
if($this->dn != $attrs['dn']) {
- $message[]= _("There's already an application with this 'Name'.");
+ $message[]= msgPool::duplicate("cn");
}
}
}
diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc
index cb84df9c35112e574292a0be208bfc7be5045802..2450de95c4854d94c246151f4f83d1f8fce52520 100644 (file)
} else {
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
- print_red (_("You are not allowed to delete this application!"));
+ print_red (msgPool::permDelete());
new log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
/* Remove lock file after successfull deletion */
/* Obviously the user isn't allowed to delete. Show message and
clean session. */
- print_red (_("You are not allowed to delete this application!"));
+ 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 application!"));
+ print_red(msgPool::permDelete());
new log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
diff --git a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc
index e04c10cdc39a975550312d62aacabacbff78d25d..30c8ee3383b12fdb4360540b23eab452ad79c3f5 100644 (file)
if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove options"),
- _("This application has options. You can disable them by clicking below."));
+ msgPool::featuresEnabled(_("parameter"));
} else {
$display= $this->show_enable_header(_("Create options"),
- _("This application has options disabled. You can enable them by clicking below."));
+ msgPool::featuresDisabled(_("parameter"));
$this->parent->by_object['application']->generateTemplate();
return ($display);
}
/* Check for valid option names */
for ($i= 0; $i<count($this->option_name); $i++){
if (!preg_match ("/^[a-z0-9_]+$/i", $this->option_name[$i])){
- $message[]= sprintf(_("Value '%s' specified as option name is not valid."),
- $this->option_name[$i]);
+ $message[]= msgPool::invalid(_("Name"), $this->option_name[$i],"/^[a-z0-9_]+$/i");
}
}