From 8605c025ec8e3da2f14cf5a4d92a6a6641969e23 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 16 May 2014 15:50:52 +0000 Subject: [PATCH] Get "Group" and "Account" message correct and translated --- admin/inc/class.admin_cmd_delete_account.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_cmd_delete_account.inc.php b/admin/inc/class.admin_cmd_delete_account.inc.php index 9a1c801fed..462ac3c84f 100644 --- a/admin/inc/class.admin_cmd_delete_account.inc.php +++ b/admin/inc/class.admin_cmd_delete_account.inc.php @@ -74,7 +74,11 @@ class admin_cmd_delete_account extends admin_cmd } if (!$this->is_user) $GLOBALS['egw']->accounts->delete($account_id); // groups get not deleted via the admin hook, as users - return lang("'%1' '%2' deleted.",($account_id < 0 ? "Group": "Account"),$this->account)."\n\n"; + if ($account_id < 0) + { + return lang("Group '%1' deleted.",$this->account)."\n\n"; + } + return lang("Account '%1' deleted.",$this->account)."\n\n"; } /**