From df5768c176042b6eba2338bf258d481dc0615396 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Dec 2017 12:38:22 +0100 Subject: [PATCH] Fix missing translation --- htdocs/langs/en_US/other.lang | 2 ++ htdocs/user/class/user.class.php | 6 ++++-- htdocs/user/class/usergroup.class.php | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index 0d9d1cfbd85..ac937a35918 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -225,6 +225,8 @@ IfAmountHigherThan=If amount higher than %s SourcesRepository=Repository for sources Chart=Chart PassEncoding=Password encoding +PermissionsAdd=Permissions added +PermissionsDelete=Permissions revomed ##### Export ##### ExportsArea=Exports area diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 565e1f014b7..1c6e8f98bf5 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -521,7 +521,8 @@ class User extends CommonObject if (! $error && ! $notrigger) { - $this->context = array('audit'=>$langs->trans("PermissionsAdd")); + $langs->load("other"); + $this->context = array('audit'=>$langs->trans("PermissionsAdd").($rid?' (id='.$rid.')':'')); // Call trigger $result=$this->call_trigger('USER_MODIFY',$user); @@ -632,7 +633,8 @@ class User extends CommonObject if (! $error && ! $notrigger) { - $this->context = array('audit'=>$langs->trans("PermissionsDelete")); + $langs->load("other"); + $this->context = array('audit'=>$langs->trans("PermissionsDelete").($rid?' (id='.$rid.')':'')); // Call trigger $result=$this->call_trigger('USER_MODIFY',$user); diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php index 7c326097669..f16af4a4c48 100644 --- a/htdocs/user/class/usergroup.class.php +++ b/htdocs/user/class/usergroup.class.php @@ -345,7 +345,8 @@ class UserGroup extends CommonObject if (! $error) { - $this->context = array('audit'=>$langs->trans("PermissionsAdd")); + $langs->load("other"); + $this->context = array('audit'=>$langs->trans("PermissionsAdd").($rid?' (id='.$rid.')':'')); // Call trigger $result=$this->call_trigger('GROUP_MODIFY',$user); @@ -458,7 +459,8 @@ class UserGroup extends CommonObject if (! $error) { - $this->context = array('audit'=>$langs->trans("PermissionsDelete")); + $langs->load("other"); + $this->context = array('audit'=>$langs->trans("PermissionsDelete").($rid?' (id='.$rid.')':'')); // Call trigger $result=$this->call_trigger('GROUP_MODIFY',$user);