mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
translating text
This commit is contained in:
parent
e8d9701a26
commit
01c24ab4cd
|
@ -583,10 +583,13 @@ class UsersController extends Controller
|
||||||
|
|
||||||
$permissionstring = "";
|
$permissionstring = "";
|
||||||
if(array_key_exists("superuser", json_decode($user->permissions, true))) {
|
if(array_key_exists("superuser", json_decode($user->permissions, true))) {
|
||||||
$permissionstring = "Superuser";
|
$permissionstring = trans('general.superuser');
|
||||||
}
|
}
|
||||||
if(array_key_exists("admin", json_decode($user->permissions, true))) {
|
elseif(array_key_exists("admin", json_decode($user->permissions, true))) {
|
||||||
$permissionstring = "Admin";
|
$permissionstring = trans('general.admin');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$permissionstring = trans('general.user');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add a new row with data
|
// Add a new row with data
|
||||||
|
|
|
@ -268,6 +268,7 @@ return [
|
||||||
'status_labels' => 'Status Labels',
|
'status_labels' => 'Status Labels',
|
||||||
'status' => 'Status',
|
'status' => 'Status',
|
||||||
'accept_eula' => 'Acceptance Agreement',
|
'accept_eula' => 'Acceptance Agreement',
|
||||||
|
'superuser' => 'Superuser',
|
||||||
'supplier' => 'Supplier',
|
'supplier' => 'Supplier',
|
||||||
'suppliers' => 'Suppliers',
|
'suppliers' => 'Suppliers',
|
||||||
'sure_to_delete' => 'Are you sure you wish to delete',
|
'sure_to_delete' => 'Are you sure you wish to delete',
|
||||||
|
|
Loading…
Reference in a new issue