Admin - admin_cmd_account_app

Translate app names, slightly better toString()
This commit is contained in:
nathangray 2019-03-22 09:48:35 -06:00
parent 784db8b12e
commit b8bbe81022
2 changed files with 7 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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