diff --git a/admin/inc/class.uicategories.inc.php b/admin/inc/class.uicategories.inc.php
index a80010b46a..c7a783a1a9 100644
--- a/admin/inc/class.uicategories.inc.php
+++ b/admin/inc/class.uicategories.inc.php
@@ -94,7 +94,7 @@
function index()
{
- $global_cats = $GLOBALS['HTTP_POST_VARS']['global_cats'] ? $GLOBALS['HTTP_POST_VARS']['global_cats'] : $GLOBALS['HTTP_GET_VARS']['global_cats'];
+ $global_cats = get_var('global_cats',array('POST','GET'));
$GLOBALS['phpgw']->common->phpgw_header();
@@ -236,7 +236,7 @@
function add()
{
- $global_cats = $GLOBALS['HTTP_POST_VARS']['global_cats'] ? $GLOBALS['HTTP_POST_VARS']['global_cats'] : $GLOBALS['HTTP_GET_VARS']['global_cats'];
+ $global_cats = get_var('global_cats',array('POST','GET'));
$link_data = array
(
@@ -317,7 +317,7 @@
function edit()
{
- $global_cats = $GLOBALS['HTTP_POST_VARS']['global_cats'] ? $GLOBALS['HTTP_POST_VARS']['global_cats'] : $GLOBALS['HTTP_GET_VARS']['global_cats'];
+ $global_cats = get_var('global_cats',array('POST','GET'));
$link_data = array
(
@@ -411,7 +411,7 @@
function delete()
{
- $global_cats = $GLOBALS['HTTP_POST_VARS']['global_cats'] ? $GLOBALS['HTTP_POST_VARS']['global_cats'] : $GLOBALS['HTTP_GET_VARS']['global_cats'];
+ $global_cats = get_var('global_cats',array('POST','GET'));
$link_data = array
(
@@ -449,9 +449,18 @@
$GLOBALS['phpgw']->template->set_var('error_msg',$error_msg);
$nolink = $GLOBALS['phpgw']->link('/index.php',$link_data);
+ if ($GLOBALS['appname'])
+ {
+ $type = 'noglobalapp';
+ }
+ else
+ {
+ $type = 'noglobal';
+ }
+
$apps_cats = $this->bo->exists(array
(
- 'type' => 'noapp',
+ 'type' => $type,
'cat_name' => '',
'cat_id' => $this->cat_id
));
@@ -461,8 +470,8 @@
if ($apps_cats)
{
- $GLOBALS['phpgw']->template->set_var('messages',lang('This category is currently being used by applications as a parent category') . ' '
- . lang('You will need to remove the subcategories before you can delete this category'));
+ $GLOBALS['phpgw']->template->set_var('delete_msg',lang('This category is currently being used by applications as a parent category') . ' '
+ . lang('You will need to reassign these subcategories before you can delete this category'));
$GLOBALS['phpgw']->template->set_var('lang_subs','');
$GLOBALS['phpgw']->template->set_var('subs','');
@@ -474,7 +483,7 @@
}
else
{
- $GLOBALS['phpgw']->template->set_var('messages',lang('Are you sure you want to delete this global category ?'));
+ $GLOBALS['phpgw']->template->set_var('delete_msg',lang('Are you sure you want to delete this global category ?'));
$exists = $this->bo->exists(array
(
diff --git a/admin/setup/phpgw_de.lang b/admin/setup/phpgw_de.lang
index ea0bf8e687..accf212ae7 100644
--- a/admin/setup/phpgw_de.lang
+++ b/admin/setup/phpgw_de.lang
@@ -24,8 +24,8 @@ are you sure you want to kill this session ? admin de Sind Sie sicher, da
change main screen message admin de Nachricht der Startseite ändern
create group admin de Erstelle Gruppe
display admin de Bezeichnung
-do you want to delete all global subcategories ? admin de Wollen Sie alle globalen Unterkategorien löschen ?
-do you want to move all global subcategories one level down ? admin de Wollen Sie alle globalen Unterkategorien einen Level nach unten verschieben ?
+do you want to delete all global subcategories ? admin de Möchten Sie alle globalen Unterkategorien löschen ?
+do you want to move all global subcategories one level down ? admin de Möchten Sie alle globalen Unterkategorien um einen Level nach unten verschieben ?
edit application admin de Anwendung bearbeiten
edit global category admin de Globale Kategorie bearbeiten
edit global category for x admin de Globale Kategorie für %1 bearbeiten
@@ -78,8 +78,8 @@ that loginid has already been taken admin de Diese LoginID ist bereits vergeben
the login and password can not be the same admin de Login und Passwort dürfen nicht identisch sein
the two passwords are not the same admin de Die beiden Paßwörter stimmen nicht überein
they must be removed before you can continue admin de Sie müssen zuvor aus dieser entfernt werden
-This category is currently being used by applications as a parent category admin de Diese Kategorie wird gegenwärtig als übergeordnete Kategorie benutzt.
-You will need to remove the subcategories before you can delete this category admin de Sie müssen erst die Unterkategorien löschen befor Sie diese Kategorie löschen können !
+This category is currently being used by applications as a parent category admin de Diese Kategorie wird gegenwärtig von Anwendungen als übergeordnete Kategorie benutzt.
+you will need to reassign these subcategories before you can delete this category admin de Sie müssen die Unterkategorien neu zuordnen, befor Sie diese Kategorie löschen können !
total records admin de Anzahl Datensätze insgesamt
user data admin de Benutzerdaten
user accounts admin de Benutzerkonten
@@ -91,4 +91,4 @@ view user account admin de Benutzerkonto anzeigen
you must add at least 1 permission to this account admin de Sie müssen diesem Konto mindestens eine Berechtigung zuteilen
you must enter an application name and title. admin de Sie müssen der Anwendung einen Namen und einen Titel geben.
you must select a file type admin de Sie müssen einen Filetyp auswählen
-userdata admin de Benutzerkonto
+userdata admin de Benutzerkonten
\ No newline at end of file
diff --git a/admin/setup/phpgw_en.lang b/admin/setup/phpgw_en.lang
index 400b6ebfd0..8a74e811e4 100644
--- a/admin/setup/phpgw_en.lang
+++ b/admin/setup/phpgw_en.lang
@@ -209,4 +209,4 @@ you must enter an application name. admin en You must enter an application name.
you must enter an application name and title. admin en You must enter an application name and title.
you must enter an application title. admin en You must enter an application title.
you must select a file type admin en You must select a file type
-you will need to remove the subcategories before you can delete this category admin en You will need to remove the subcategories before you can delete this category !
+you will need to reassign these subcategories before you can delete this category admin en You will need to reassign these subcategories before you can delete this category !
diff --git a/admin/templates/default/delete_cat.tpl b/admin/templates/default/delete_cat.tpl
index fad370b5bc..a14d1cb60e 100644
--- a/admin/templates/default/delete_cat.tpl
+++ b/admin/templates/default/delete_cat.tpl
@@ -7,19 +7,19 @@