Commit 5c122607 authored by Nicolas Widart's avatar Nicolas Widart

Setting the default lang to the browser language

parent f0e49550
......@@ -7,6 +7,5 @@ class AdminBaseController
{
public function __construct()
{
//$this->beforeFilter('auth.admin');
}
}
\ No newline at end of file
......@@ -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
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