From b8bbe81022e08dfb1077f42c8194b3ff90bdb88c Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 22 Mar 2019 09:48:35 -0600 Subject: [PATCH] Admin - admin_cmd_account_app Translate app names, slightly better toString() --- admin/inc/class.admin_cmd_account_app.inc.php | 7 ++++++- admin/lang/egw_en.lang | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_cmd_account_app.inc.php b/admin/inc/class.admin_cmd_account_app.inc.php index aa614c1f13..fca58c0b66 100644 --- a/admin/inc/class.admin_cmd_account_app.inc.php +++ b/admin/inc/class.admin_cmd_account_app.inc.php @@ -90,7 +90,12 @@ class admin_cmd_account_app extends admin_cmd */ function __tostring() { + $apps = $this->apps; + foreach($apps as &$app) + { + $app = lang($app); + } return lang('%1 rights for %2 and applications %3',$this->allow ? lang('Grant') : lang('Remove'), - admin_cmd::display_account($this->account),implode(', ',$this->apps)); + admin_cmd::display_account($this->account),implode(', ',$apps)); } } diff --git a/admin/lang/egw_en.lang b/admin/lang/egw_en.lang index 6841b4d078..fcc293b53d 100644 --- a/admin/lang/egw_en.lang +++ b/admin/lang/egw_en.lang @@ -13,7 +13,7 @@ %1 log entries deleted. admin en %1 log entries deleted. %1 not found or not executable !!! admin en %1 not found or not executable! %1 phrases saved. admin en %1 phrases saved. -%1 rights for %2 and applications %3 admin en %1 rights for %2 and applications %3 . +%1 rights for %2 and applications %3 admin en %1 rights for %2 and application(s) %3 . %1 run rights for applications admin en %1 run rights for applications %1 sessions killed admin en %1 sessions killed. %1 user %2 admin en %1 user %2