diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2020-02-18 18:22:08 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-02-18 18:22:08 +0100 |
| commit | 0c035c763f170fcf358d2c60a05f6ec32c3a1025 (patch) | |
| tree | 7a4bb5e3696ccfbf7cadee7bfadb447efaf883d8 | |
| parent | ccb96544f77814273bc0fbe2342633df69433669 (diff) | |
| parent | 6df41728872934fe0e7f12c0a272d370f50d26a9 (diff) | |
Merge branch 'master' of https://github.com/asciimoo/searx into filtron
| -rw-r--r-- | searx/preferences.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index 669232b12..37d4f13a8 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -11,7 +11,7 @@ if version[0] == '3': COOKIE_MAX_AGE = 60 * 60 * 24 * 365 * 5 # 5 years -LANGUAGE_CODES = [l[0] for l in languages] +LANGUAGE_CODES = [l[0].split('-')[0] for l in languages] LANGUAGE_CODES.append('all') DISABLED = 0 ENABLED = 1 |