translating text

This commit is contained in:
akemidx 2024-04-22 19:16:14 -04:00
parent e8d9701a26
commit 01c24ab4cd
2 changed files with 7 additions and 3 deletions

View file

@ -583,10 +583,13 @@ class UsersController extends Controller
$permissionstring = "";
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))) {
$permissionstring = "Admin";
elseif(array_key_exists("admin", json_decode($user->permissions, true))) {
$permissionstring = trans('general.admin');
}
else {
$permissionstring = trans('general.user');
}
// Add a new row with data

View file

@ -268,6 +268,7 @@ return [
'status_labels' => 'Status Labels',
'status' => 'Status',
'accept_eula' => 'Acceptance Agreement',
'superuser' => 'Superuser',
'supplier' => 'Supplier',
'suppliers' => 'Suppliers',
'sure_to_delete' => 'Are you sure you wish to delete',