Commit e2db60c6 authored by Nicolas Widart's avatar Nicolas Widart

Add localised route

parent 50cfadb2
<?php
Route::group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\User\Http\Controllers'], function()
$locale = LaravelLocalization::setLocale();
Route::group(['prefix' => $locale . '/' . Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\User\Http\Controllers'], function()
{
Route::resource('users', 'Admin\UserController', ['except' => ['show'], 'names' => [
'index' => 'dashboard.user.index',
......
<?php
return [
'new-user' => 'New User'
];
\ No newline at end of file
<?php
return [
'new-user' => 'Nouvel utilisateur'
];
\ No newline at end of file
......@@ -17,7 +17,7 @@
@include('flash::message')
<div class="btn-group pull-right" style="margin: 0 15px 15px 0;">
<a href="{{ URL::route('dashboard.user.create') }}" class="btn btn-primary btn-flat" style="padding: 4px 10px;">
<i class="fa fa-pencil"></i> New User
<i class="fa fa-pencil"></i> {{ trans('user::users.new-user') }}
</a>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment