Nicolas Gelot 373a66be30 Fix locale and search language
Locale and search language was always defined with english value.

This patch inits the locale on `pre_request` in order to define the
default value of locale and language preferences.

Plus the `best_match` function provided by flask babel library did not
work as expected. So the function `match_language` provided
by searx is used to detect that the language from Accepted-Language
header can be used in searx project.
2019-06-17 23:19:15 +02:00
..
2019-05-29 10:05:57 +09:00
2018-08-26 10:34:41 +02:00
2019-02-23 18:52:36 +01:00
2019-06-17 23:19:15 +02:00
2019-06-17 23:19:15 +02:00
2017-05-15 12:02:30 +02:00
2017-11-01 17:02:38 +01:00
2019-01-06 21:59:59 +01:00
2019-06-17 23:19:15 +02:00