diff options
| author | Nicolas Gelot <nicofonk@gmail.com> | 2019-03-28 18:07:03 +0100 |
|---|---|---|
| committer | Nicolas Gelot <nicofonk@gmail.com> | 2019-06-17 23:19:15 +0200 |
| commit | 373a66be3046bbb7deca20f08468cb5dea44eaf9 (patch) | |
| tree | 3962814873918aa7ed07dd634c44ca67f193ca9b /searx/settings.yml | |
| parent | a818d3241df2cf010086f837a504b11983c3d55f (diff) | |
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.
Diffstat (limited to 'searx/settings.yml')
| -rw-r--r-- | searx/settings.yml | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/searx/settings.yml b/searx/settings.yml index 0be07b1e5..8f1a06a77 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -5,7 +5,6 @@ general: search: safe_search : 0 # Filter results. 0: None, 1: Moderate, 2: Strict autocomplete : "" # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "wikipedia" - leave blank to turn it off by default - language : "en-US" ban_time_on_fail : 5 # ban time in seconds after engine errors max_ban_time_on_fail : 120 # max ban time in seconds after engine errors |