Fix language
This commit is contained in:
parent
727c4b787b
commit
c4e96e9f74
@ -885,7 +885,6 @@ LineNb=Line no.
|
|||||||
IncotermLabel=Incoterms
|
IncotermLabel=Incoterms
|
||||||
TabLetteringCustomer=Customer lettering
|
TabLetteringCustomer=Customer lettering
|
||||||
TabLetteringSupplier=Vendor lettering
|
TabLetteringSupplier=Vendor lettering
|
||||||
# Week day
|
|
||||||
Monday=Monday
|
Monday=Monday
|
||||||
Tuesday=Tuesday
|
Tuesday=Tuesday
|
||||||
Wednesday=Wednesday
|
Wednesday=Wednesday
|
||||||
@ -965,3 +964,4 @@ SelectAThirdPartyFirst=Select a third party first...
|
|||||||
YouAreCurrentlyInSandboxMode=You are currently in the %s "sandbox" mode
|
YouAreCurrentlyInSandboxMode=You are currently in the %s "sandbox" mode
|
||||||
Inventory=Inventory
|
Inventory=Inventory
|
||||||
AnalyticCode=Analytic code
|
AnalyticCode=Analytic code
|
||||||
|
TMenuMRP=MRP
|
||||||
@ -109,3 +109,4 @@ UserLogoff=User logout
|
|||||||
UserLogged=User logged
|
UserLogged=User logged
|
||||||
DateEmployment=Employment Start Date
|
DateEmployment=Employment Start Date
|
||||||
DateEmploymentEnd=Employment End Date
|
DateEmploymentEnd=Employment End Date
|
||||||
|
CantDisableYourself=You can disable your own user record
|
||||||
@ -1828,18 +1828,25 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Activer
|
// Enable user
|
||||||
if ($user->id <> $id && $candisableuser && $object->statut == 0 &&
|
if ($user->id <> $id && $candisableuser && $object->statut == 0 &&
|
||||||
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
||||||
{
|
{
|
||||||
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=enable">'.$langs->trans("Reactivate").'</a></div>';
|
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=enable">'.$langs->trans("Reactivate").'</a></div>';
|
||||||
}
|
}
|
||||||
// Desactiver
|
// Disable user
|
||||||
if ($user->id <> $id && $candisableuser && $object->statut == 1 &&
|
if ($user->id <> $id && $candisableuser && $object->statut == 1 &&
|
||||||
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
||||||
{
|
{
|
||||||
print '<div class="inline-block divButAction"><a class="butActionDelete" href="'.$_SERVER['PHP_SELF'].'?action=disable&id='.$object->id.'">'.$langs->trans("DisableUser").'</a></div>';
|
print '<div class="inline-block divButAction"><a class="butActionDelete" href="'.$_SERVER['PHP_SELF'].'?action=disable&id='.$object->id.'">'.$langs->trans("DisableUser").'</a></div>';
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ($user->id == $id)
|
||||||
|
{
|
||||||
|
print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans("CantDisableYourself").'">'.$langs->trans("DisableUser").'</a></div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
// Delete
|
// Delete
|
||||||
if ($user->id <> $id && $candisableuser &&
|
if ($user->id <> $id && $candisableuser &&
|
||||||
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user