Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
5c122607
Commit
5c122607
authored
Oct 06, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting the default lang to the browser language
parent
f0e49550
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
AdminBaseController.php
Http/Controllers/Admin/AdminBaseController.php
+0
-1
routes.php
Http/routes.php
+2
-2
No files found.
Http/Controllers/Admin/AdminBaseController.php
View file @
5c122607
...
...
@@ -7,6 +7,5 @@ class AdminBaseController
{
public
function
__construct
()
{
//$this->beforeFilter('auth.admin');
}
}
\ No newline at end of file
Http/routes.php
View file @
5c122607
...
...
@@ -5,10 +5,10 @@
| Language Settings
|--------------------------------------------------------------------------
*/
$lang
=
Request
::
getPreferredLanguage
([
'fr'
,
'en'
,
'
en'
,
'
de'
]);
$lang
=
Request
::
getPreferredLanguage
([
'fr'
,
'en'
,
'de'
]);
if
(
App
::
environment
()
==
'testing'
)
{
$lang
=
'fr'
;
}
App
::
setLocale
(
'fr'
);
\ No newline at end of file
App
::
setLocale
(
$lang
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment