Commit 912d771e authored by Nicolas Widart's avatar Nicolas Widart

Using symfonys getPreferendLanguage

parent 5e558f47
......@@ -5,9 +5,10 @@
| Language Settings
|--------------------------------------------------------------------------
*/
$lang = Request::getPreferredLanguage(['fr', 'en', 'en', 'de']);
if (App::environment() == 'testing') {
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'fr_FR';
$lang = 'fr';
}
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
App::setLocale('fr');
\ 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