Remove trans() from config file
Laravel relies on the translation class for this, and this is only loaded after the config files, so menu translation will have to be done exclusively by the AdminLte service provider.
This commit is contained in:
parent
a0192cdb02
commit
326e0f8c7c
|
@ -209,74 +209,74 @@ return [
|
||||||
|
|
||||||
'menu' => [
|
'menu' => [
|
||||||
[
|
[
|
||||||
'text' => __('messages.home'),
|
'text' => 'Home',
|
||||||
'icon' => 'fas fa-home',
|
'icon' => 'fas fa-home',
|
||||||
'url' => 'dashboard'
|
'url' => 'dashboard'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.user.directory.directory'),
|
'text' => 'Directory',
|
||||||
'icon' => 'fas fa-users',
|
'icon' => 'fas fa-users',
|
||||||
'url' => 'users/directory',
|
'url' => 'users/directory',
|
||||||
'can' => 'profiles.view.others'
|
'can' => 'profiles.view.others'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'header' => __('messages.application_m.int_applications'),
|
'header' => 'Applications',
|
||||||
'can' => 'applications.view.own'
|
'can' => 'applications.view.own'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.my_apps'),
|
'text' => 'My Applications',
|
||||||
'icon' => 'fas fa-fw fa-list-ul',
|
'icon' => 'fas fa-fw fa-list-ul',
|
||||||
'can' => 'applications.view.own',
|
'can' => 'applications.view.own',
|
||||||
'submenu' => [
|
'submenu' => [
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.current_apps'),
|
'text' => 'Current Applications',
|
||||||
'icon' => 'fas fa-fw fa-check-double',
|
'icon' => 'fas fa-fw fa-check-double',
|
||||||
'url' => '/applications/my-applications'
|
'url' => '/applications/my-applications'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
__('messages.reusable.profile'),
|
'My Profile',
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.profile_settings'),
|
'text' => 'Profile Settings',
|
||||||
'url' => '/profile/settings',
|
'url' => '/profile/settings',
|
||||||
'icon' => 'fas fa-fw fa-cog'
|
'icon' => 'fas fa-fw fa-cog'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.profile.account_settings_personal'),
|
'text' => 'My Account Settings',
|
||||||
'icon' => 'fas fa-user-circle',
|
'icon' => 'fas fa-user-circle',
|
||||||
'url' => '/profile/settings/account'
|
'url' => '/profile/settings/account'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'header' => __('messages.application_m.title'),
|
'header' => 'Application Management',
|
||||||
'can' => ['applications.view.all', 'applications.vote']
|
'can' => ['applications.view.all', 'applications.vote']
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.application_m.all_apps'),
|
'text' => 'All applications',
|
||||||
'url' => 'applications/staff/all',
|
'url' => 'applications/staff/all',
|
||||||
'icon' => 'fas fa-list-ol',
|
'icon' => 'fas fa-list-ol',
|
||||||
'can' => 'applications.view.all'
|
'can' => 'applications.view.all'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.application_m.outstanding_apps'),
|
'text' => 'Outstanding Applications',
|
||||||
'url' => '/applications/staff/outstanding',
|
'url' => '/applications/staff/outstanding',
|
||||||
'icon' => 'far fa-folder-open',
|
'icon' => 'far fa-folder-open',
|
||||||
'can' => 'applications.view.all'
|
'can' => 'applications.view.all'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.application_m.interview_q'),
|
'text' => 'Interview Queue',
|
||||||
'url' => '/applications/staff/pending-interview',
|
'url' => '/applications/staff/pending-interview',
|
||||||
'icon' => 'fas fa-fw fa-microphone-alt',
|
'icon' => 'fas fa-fw fa-microphone-alt',
|
||||||
'can' => 'applications.view.all'
|
'can' => 'applications.view.all'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.user.peer_approval_q'),
|
'text' => 'Peer Approval Queue',
|
||||||
'url' => '/applications/staff/peer-review',
|
'url' => '/applications/staff/peer-review',
|
||||||
'icon' => 'fas fa-fw fa-search',
|
'icon' => 'fas fa-fw fa-search',
|
||||||
'can' => 'applications.view.all'
|
'can' => 'applications.view.all'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'header' => __('messages.adm'),
|
'header' => 'Administration',
|
||||||
'can' => [ // may need to be modified
|
'can' => [ // may need to be modified
|
||||||
'admin.hiring.*',
|
'admin.hiring.*',
|
||||||
'admin.userlist',
|
'admin.userlist',
|
||||||
|
@ -286,38 +286,38 @@ return [
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.staff.members'),
|
'text' => 'Staff Members',
|
||||||
'icon' => 'fas fa-fw fa-users',
|
'icon' => 'fas fa-fw fa-users',
|
||||||
'url' => '/hr/staff-members',
|
'url' => '/hr/staff-members',
|
||||||
'can' => 'admin.stafflist'
|
'can' => 'admin.stafflist'
|
||||||
],
|
],
|
||||||
[ // players who haven't been promoted yet
|
[ // players who haven't been promoted yet
|
||||||
'text' => __('messages.players.reg_players'),
|
'text' => 'Registered Players',
|
||||||
'icon' => 'fas fa-fw fa-user-friends',
|
'icon' => 'fas fa-fw fa-user-friends',
|
||||||
'url' => '/hr/players',
|
'url' => '/hr/players',
|
||||||
'can' => 'admin.userlist'
|
'can' => 'admin.userlist'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.hiring_man'),
|
'text' => 'Hiring Management',
|
||||||
'icon' => 'far fa-calendar-plus',
|
'icon' => 'far fa-calendar-plus',
|
||||||
'can' => 'admin.hiring.*',
|
'can' => 'admin.hiring.*',
|
||||||
'submenu' => [
|
'submenu' => [
|
||||||
[
|
[
|
||||||
'text' => __('messages.open_positions'),
|
'text' => 'Open Positions',
|
||||||
'icon' => 'fas fa-box-open',
|
'icon' => 'fas fa-box-open',
|
||||||
'url' => '/admin/positions'
|
'url' => '/admin/positions'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.forms'),
|
'text' => 'Forms',
|
||||||
'icon' => 'fab fa-wpforms',
|
'icon' => 'fab fa-wpforms',
|
||||||
'submenu' => [
|
'submenu' => [
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.all_forms'),
|
'text' => 'All forms',
|
||||||
'icon' => 'far fa-list-alt',
|
'icon' => 'far fa-list-alt',
|
||||||
'url' => '/admin/forms'
|
'url' => '/admin/forms'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.form_builder.builder'),
|
'text' => 'Form Builder',
|
||||||
'icon' => 'fas fa-fw fa-hammer',
|
'icon' => 'fas fa-fw fa-hammer',
|
||||||
'url' => '/admin/forms/builder'
|
'url' => '/admin/forms/builder'
|
||||||
]
|
]
|
||||||
|
@ -326,18 +326,18 @@ return [
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.app_settings'),
|
'text' => 'App Settings',
|
||||||
'icon' => 'fas fa-fw fa-cog',
|
'icon' => 'fas fa-fw fa-cog',
|
||||||
'can' => 'admin.notificationsettings',
|
'can' => 'admin.notificationsettings',
|
||||||
'submenu' => [
|
'submenu' => [
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.global_app_settings'),
|
'text' => 'Global Application Settings',
|
||||||
'icon' => 'fas fa-cogs',
|
'icon' => 'fas fa-cogs',
|
||||||
'url' => '/admin/settings',
|
'url' => '/admin/settings',
|
||||||
'can' => 'admin.settings.view'
|
'can' => 'admin.settings.view'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.devtools'),
|
'text' => 'Developer Tools',
|
||||||
'icon' => 'fas fa-code',
|
'icon' => 'fas fa-code',
|
||||||
'url' => '/admin/devtools',
|
'url' => '/admin/devtools',
|
||||||
'can' => 'admin.developertools.use'
|
'can' => 'admin.developertools.use'
|
||||||
|
@ -345,7 +345,7 @@ return [
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => __('messages.menu.system_logs'),
|
'text' => 'System Logs',
|
||||||
'url' => '/admin/maintenance/system-logs',
|
'url' => '/admin/maintenance/system-logs',
|
||||||
'icon' => 'fas fa-clipboard-list',
|
'icon' => 'fas fa-clipboard-list',
|
||||||
'can' => 'admin.maintenance.logs.view'
|
'can' => 'admin.maintenance.logs.view'
|
||||||
|
|
Loading…
Reference in New Issue