summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c6d96aa)
raw | patch | inline | side by side (parent: c6d96aa)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 14:35:18 +0000 (14:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 14:35:18 +0000 (14:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9716 594d385d-05f5-0310-b6e9-bd551577e9d8
21 files changed:
diff --git a/gosa-core/plugins/admin/acl/class_aclManagement.inc b/gosa-core/plugins/admin/acl/class_aclManagement.inc
index 91cfe3f948ec187d4aca45f8601e12e168ebeef8..88e0f3607fdf5530c9130a33d7fbf4017c54b0bd 100644 (file)
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the acl %s."), @LDAP::fix($this->dn)));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn)));
$smarty->assign("is_role",true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the acl %s."), @LDAP::fix($this->dn)));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("acl")));
$smarty->assign("is_role",false);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
} else {
diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc
index deb6fd1ccea2f30968cff9a95b20bb45c7f9bfbc..81aaae19970405a8cadf60e43cca232edfa19de5 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("info", sprintf(_("You're about to delete the following entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("info", sprintf(_("You're about to delete the following entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("info", msgPool::deleteInfo($dns_names));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc
index 9975f313e5372da7505634b7e2fbd1032cb13f38..2e928eb717c9ac8ecb8ad8924c2f20be183f1779 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] =@LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("info", sprintf(_("You're about to delete the following entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("info", sprintf(_("You're about to delete the following entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("info", msgPool::deleteInfo($dns_names,_("group")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the group '%s'."), @LDAP::fix($this->dn)));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("group")));
$smarty->assign("multiple", false);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
diff --git a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
index 05df513ffc6ea55718f6319b5c5ac5717e1ea82a..b1d139436f5ee7d949cd379438571ed8c7131540 100644 (file)
}
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
+
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("info", sprintf(_("You're about to delete the following object entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("info", sprintf(_("You're about to delete the following object entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("info", msgPool::deleteInfo($dns_names,_("object group")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the object group '%s'."), @LDAP::fix($this->dn)));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("object group")));
$smarty->assign("multiple", false);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
} else {
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index adcbe468d46cf99daac1cb5bffda1f984784b7eb..53d0ad834e82aae79c1363866c5b028061d7019d 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $info = sprintf(_("You're about to delete the following entry: %s"), @LDAP::fix($dns_names));
- } else {
- $info = sprintf(_("You're about to delete the following entries: %s"), @LDAP::fix($dns_names));
- }
+ $info = sprintf(msgPool::deleteInfo($dns_names,_("user")));
$this->msg_dialog = new msg_dialog(_("Delete users"),$info,CONFIRM_DIALOG);
$this->current_action = $s_action;
}
return(gen_locked_message ($user, $this->dn));
}
-
- /* Lock the current entry, so nobody will edit it during deletion */
-# add_lock ($this->dn, $this->ui->dn);
-# $smarty->assign("info", sprintf(_("You're about to delete the user %s."), @LDAP::fix($this->dn)));
-# $smarty->assign("multiple", false);
-# return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
- $this->msg_dialog = new msg_dialog( _("Delete user"),sprintf(_("You're about to delete the user %s."), @LDAP::fix($this->dn)),CONFIRM_DIALOG);
+ $this->msg_dialog = new msg_dialog( _("Delete user"),msgPool::deleteInfo(@LDAP::fix($this->dn),_("user")),CONFIRM_DIALOG);
$this->current_action = $s_action;
}
diff --git a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc
index e22da6c472a2e487280fbeb1569e16d17e725b2a..be2e7125b3535054c98314004fbe8908f18bf70e 100644 (file)
/* Lock the current entry, so nobody will edit it during deletion */
$ui= get_userinfo();
add_lock ($this->dn, $ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the entry %s."), $this->dn));
+ $smarty->assign("info", msgPool::deleteInfo($this->dn));
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
} else {
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc
index 014ffdeb01544a84f7b65cbb5a534b5bbded8e90..b59584a40198f24b2c6a8670f7f1c26fc88a6cde 100644 (file)
if (isset($this->dhcpObjectCache[$dn])){
$this->current_object= $dn;
$this->dialog= 1;
- $smarty->assign("warning", sprintf(_("You're about to delete the DHCP section '%s'."), $dn));
+ $smarty->assign("warning", msgPool::deleteInfo(@LDAP::fix($dn),_("DHCP section")));
return($smarty->fetch(get_template_path('remove_dhcp.tpl', TRUE, dirname(__FILE__))));
}
}
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 32a764b0e89fadb4ae076af49e7cab99d8cc4ce8..89bb6559d1616cf8d7740866426ee04303aa347a 100644 (file)
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("warning", sprintf(_("You're about to delete all information about the FAI class at '%s'."), @LDAP::fix($this->dn)));
+ $smarty->assign("warning",msgPool::deleteInfo(@LDAP::fix($this->dn),_("FAI object")));
$smarty->assign("multiple", false);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
} else {
if(count($this->dns)){
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("warning", sprintf(_("You're about to delete the following entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("warning", sprintf(_("You're about to delete the following entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("warning",msgPool::deleteInfo($dns_names,_("FAI object")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
we're allowed to remove this 'dn' */
if($this->acl_is_removeable()){
- $smarty->assign("info", sprintf(_("You're about to delete a fai branch / freeze '%s'."), $this->DivListFai->selectedBranch));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->DivListFai->selectedBranch),_("FAI branch/freeze")));
return($smarty->fetch(get_template_path('remove_branch.tpl',TRUE)));
} else {
msg_dialog::display(_("Permission error"), _("You have no permission to delete this release!"), ERROR_DIALOG);
diff --git a/gosa-plugins/glpi/admin/systems/services/glpi/class_glpiAttachmentPool.inc b/gosa-plugins/glpi/admin/systems/services/glpi/class_glpiAttachmentPool.inc
index f8568a823f752dd03b6e0a92319bd85e6dfb4493..eca6b9d019505173343456d84b0dbf2078f48227 100644 (file)
/* remove attach from db */
$this->delAttach = $str;
- $smarty->assign("warning", sprintf(_("You're about to delete the glpi attachment component '%s'."), $attach[$str]['name']));
+ $smarty->assign("warning",msgPool::deleteInfo($attach[$str]['name'],_("attachment")));
return($smarty->fetch(get_template_path('remove_glpi.tpl',TRUE,dirname(__FILE__))));
}
diff --git a/gosa-plugins/glpi/admin/systems/services/glpi/class_glpiDeviceManagement.inc b/gosa-plugins/glpi/admin/systems/services/glpi/class_glpiDeviceManagement.inc
index c507cbe3a02be68dbb5554890ae40b2d7c990929..f0721639027d9ff601ae8a3160ac371bed7853a7 100644 (file)
$this->delete = $tmp;
if(isset($tmp['name'])){
- $smarty->assign("warning", sprintf(_("You're about to delete the glpi device '%s'."), $tmp['name']));
+ $smarty->assign("warning",msgPool::deleteInfo($tmp['name'],_("glpi device")));
}elseif(isset($tmp['designation'])){
- $smarty->assign("warning", sprintf(_("You're about to delete the glpi device '%s'."), $tmp['designation']));
+ $smarty->assign("warning",msgPool::deleteInfo($tmp['designation'],_("glpi device")));
}else{
print_red(_("Can't detect object name."));
}
diff --git a/gosa-plugins/glpi/admin/systems/services/glpi/class_glpiPrinterCartridges.inc b/gosa-plugins/glpi/admin/systems/services/glpi/class_glpiPrinterCartridges.inc
index 68c84d8fb3d6a53779e6a352655869d569de965b..0e6e1eb74d2d2cd3fb3307c4f8daa11c5a7f6f79 100644 (file)
/* remove attach from db */
$this->del = $_GET['id'];
$val = ($this->parent->handle->getCartridgeTypeInformations($_GET['id']));
- $smarty->assign("warning", sprintf(_("You're about to delete the glpi cartridge type '%s'."), $val[$this->del]['name']));
+ $smarty->assign("warning", msgPool::deleteInfo($val[$this->del]['name'],_("cartridge")));
return($smarty->fetch(get_template_path('remove_glpi.tpl',TRUE,dirname(__FILE__))));
}
diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc
index 9ab22a4c68dfa88fa409c20ec4a421d683f793b0..d75b2993dc941d3aac7b5b5845d2e1141c899a72 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names[] = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[]=@LDAP::fix( $dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- $smarty->assign("info", sprintf(_("You're about to delete the following blocklists(s) %s"), @LDAP::fix($dns_names)));
+ $smarty->assign("info", msgPool::deleteInfo($dns_names,_("blocklist")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
// Lock this dn for editing
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the blocklist '%s'."), $this->dn));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("blocklist")));
$smarty->assign("multiple", false);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceManagment.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceManagment.inc
index 43a277f7060db7f1ea9680061011cb151fcf8a7f..abf3a2b4b1ff10057829f6f5c3be146bbc3ef4ea 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- $smarty->assign("info", sprintf(_("You're about to delete the following user(s) %s"), @LDAP::fix($dns_names)));
+ $smarty->assign("info", msgPool::deleteInfo($dns_names,_("conference")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
return(gen_locked_message($conf, $this->dn));
} else {
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("info", sprintf(_("You're about to delete the whole LDAP subtree placed under '%s'."), $this->dn));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("conference")));
$smarty->assign("multiple", false);
$display.= $smarty->fetch (get_template_path('remove.tpl', TRUE));
return ($display);
diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc
index ebeb181318ee7332b2e1b7860bac4dff63023667..5a4ff0ea996be7e55b7e3db5b4cbbff2f635df1d 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- $smarty->assign("intro", sprintf(_("You're about to delete the following macro(s) %s"), @LDAP::fix($dns_names)));
+ $smarty->assign("intro", msgPool::deleteInfo($dns_names,("macro")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
$smarty= get_smarty();
- $smarty->assign("intro", sprintf(_("You're about to delete the macro '%s'."), $this->dn));
+ $smarty->assign("intro", msgPool::deleteInfo(@LDAP::fix($this->dn),_("macro")));
$smarty->assign("multiple", false);
return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
} else {
diff --git a/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/gosa-plugins/goto/addons/goto/class_gotomasses.inc
index f2a7b34bbcbf563a5bcd1f54987f798870057717..9cb39a956e9889d5bb9f5b809c8d38066671821a 100644 (file)
}
}
$smarty->assign("multiple", TRUE);
- $smarty->assign("info",sprintf(_("You are about to remove the following actions from the GOsa support Daemon: %s"),"<pre>".$tmp."</pre>"));
+ $smarty->assign("info",msgPool::deleteInfo("<pre>".$tmp."</pre>"));
$this->current = $s_entry;
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc
index 2450de95c4854d94c246151f4f83d1f8fce52520..9cecb11035cfaa0fa37c2979af4531b881be1f93 100644 (file)
foreach($ids as $id){
$dn = $this->applications[$id]['dn'];
- if (($user= get_lock($dn)) != ""){
- return(gen_locked_message ($user, $dn));
- }
$this->dns[$id] = $dn;
}
+ if ($user= get_multiple_locks($this->dns)){
+ return(gen_locked_message($user,$this->dns));
+ }
- $dns_names = "<br><pre>";
+ $dns_names[] = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] =@LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("intro", sprintf(_("You're about to delete the following entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("intro", sprintf(_("You're about to delete the following entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("intro", msgPool::deleteInfo($dns_names,_("application")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
$smarty= get_smarty();
- $smarty->assign("intro", sprintf(_("You're about to delete the application '%s'."), @LDAP::fix($this->dn)));
+ $smarty->assign("intro",msgPool::deleteInfo(@LDAP::fix($this->dn),_("application")));
$smarty->assign("multiple", false);
return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
} else {
diff --git a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc
index 30c8ee3383b12fdb4360540b23eab452ad79c3f5..913107044b4d64bc8317448c1924fd3b3fe3f5e9 100644 (file)
$display= "";
if ($this->parent !== NULL){
if ($this->is_account){
- $display= $this->show_disable_header(_("Remove options"),
- msgPool::featuresEnabled(_("parameter"));
+ $display= $this->show_disable_header(_("Remove options"),msgPool::featuresEnabled(_("parameter")));
} else {
- $display= $this->show_enable_header(_("Create options"),
- msgPool::featuresDisabled(_("parameter"));
+ $display= $this->show_enable_header(_("Create options"), msgPool::featuresDisabled(_("parameter")));
$this->parent->by_object['application']->generateTemplate();
return ($display);
}
diff --git a/gosa-plugins/goto/admin/devices/class_deviceManagement.inc b/gosa-plugins/goto/admin/devices/class_deviceManagement.inc
index 55d405e5dfbdec4acb838841af4bd2a88835f85a..59ce69d895962bdcdc0d79464292fe32495de229 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] =@LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("intro", sprintf(_("You're about to delete the following entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("intro", sprintf(_("You're about to delete the following entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("intro", msgPool::deleteInfo($dns_names),_("device"));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
$smarty= get_smarty();
- $smarty->assign("intro", sprintf(_("You're about to delete the device '%s'."), @LDAP::fix($this->dn)));
+ $smarty->assign("intro", msgPool::deleteInfo(@LDAP::fix($this->dn),_("device")));
$smarty->assign("multiple", false);
return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
} else {
diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc
index ae2cff498d869c5c14581318233638aafa91f9c4..89bc5745e137c947e00e7d621b4c39cf251f317c 100644 (file)
$this->dns[$id] = $dn;
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("intro", sprintf(_("You're about to delete the following entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("intro", sprintf(_("You're about to delete the following entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("info", msgPool::deleteInfo($dns_names,_("mimetype")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
$smarty= get_smarty();
- $smarty->assign("intro", sprintf(_("You're about to delete the mime type '%s'."), @LDAP::fix($this->dn)));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("mimetype")));
$smarty->assign("multiple", false);
return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
} else {
diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc
index 417853e4b60345408c01270f19c458672b46d1af..f4a3396e05e3feb1d9a0227ff03c83d7b68b4475 100644 (file)
/* Display confirm dialog */
if($this->script_to_delete != -1){
$smarty = get_smarty();
- $smarty->assign("Warning",
- sprintf(_("You are going to remove the sieve script '%s' from your mail server."),
- $this->scripts[$this->script_to_delete]['NAME']));
+ $smarty->assign("Warning",msgPool::deleteInfo($this->scripts[$this->script_to_delete]['NAME']));
return($smarty->fetch(get_template_path("templates/remove_script.tpl",TRUE,dirname(__FILE__))));
}
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index e05a52c3a388a031384288fcee8fe4441224cc6d..0258be6bdc3a34681b6b41a1270a8ff091b2be02 100644 (file)
return(gen_locked_message($user,$this->dns));
}
- $dns_names = "<br><pre>";
+ $dns_names = array();
foreach($this->dns as $dn){
add_lock ($dn, $this->ui->dn);
- $dns_names .= $dn."\n";
+ $dns_names[] = @LDAP::fix($dn);
}
- $dns_names .="</pre>";
/* Lock the current entry, so nobody will edit it during deletion */
- if (count($this->dns) == 1){
- $smarty->assign("warning", sprintf(_("You're about to delete the following entry %s"), @LDAP::fix($dns_names)));
- } else {
- $smarty->assign("warning", sprintf(_("You're about to delete the following entries %s"), @LDAP::fix($dns_names)));
- }
+ $smarty->assign("info", msgPool::deleteInfo($dns_names));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("warning", sprintf(_("You're about to delete all information about the component at '%s'."), @LDAP::fix($this->dn)));
+ $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn)));
$smarty->assign("multiple", false);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
} else {