Fix missing translation

This commit is contained in:
Laurent Destailleur 2017-12-08 12:38:22 +01:00
parent 56b0279ed7
commit df5768c176
3 changed files with 10 additions and 4 deletions

View File

@ -225,6 +225,8 @@ IfAmountHigherThan=If amount higher than <strong>%s</strong>
SourcesRepository=Repository for sources SourcesRepository=Repository for sources
Chart=Chart Chart=Chart
PassEncoding=Password encoding PassEncoding=Password encoding
PermissionsAdd=Permissions added
PermissionsDelete=Permissions revomed
##### Export ##### ##### Export #####
ExportsArea=Exports area ExportsArea=Exports area

View File

@ -521,7 +521,8 @@ class User extends CommonObject
if (! $error && ! $notrigger) 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 // Call trigger
$result=$this->call_trigger('USER_MODIFY',$user); $result=$this->call_trigger('USER_MODIFY',$user);
@ -632,7 +633,8 @@ class User extends CommonObject
if (! $error && ! $notrigger) 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 // Call trigger
$result=$this->call_trigger('USER_MODIFY',$user); $result=$this->call_trigger('USER_MODIFY',$user);

View File

@ -345,7 +345,8 @@ class UserGroup extends CommonObject
if (! $error) if (! $error)
{ {
$this->context = array('audit'=>$langs->trans("PermissionsAdd")); $langs->load("other");
$this->context = array('audit'=>$langs->trans("PermissionsAdd").($rid?' (id='.$rid.')':''));
// Call trigger // Call trigger
$result=$this->call_trigger('GROUP_MODIFY',$user); $result=$this->call_trigger('GROUP_MODIFY',$user);
@ -458,7 +459,8 @@ class UserGroup extends CommonObject
if (! $error) if (! $error)
{ {
$this->context = array('audit'=>$langs->trans("PermissionsDelete")); $langs->load("other");
$this->context = array('audit'=>$langs->trans("PermissionsDelete").($rid?' (id='.$rid.')':''));
// Call trigger // Call trigger
$result=$this->call_trigger('GROUP_MODIFY',$user); $result=$this->call_trigger('GROUP_MODIFY',$user);