diff options
author | Adam Tauber <asciimoo@gmail.com> | 2020-02-18 00:56:27 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2020-02-18 00:56:27 +0100 |
commit | 6df41728872934fe0e7f12c0a272d370f50d26a9 (patch) | |
tree | 683d10019fe9ee6229233e71ef559730c4dcbd10 /searx/preferences.py | |
parent | ab2f56e886b47924c2c2e992ca2954f1469621ab (diff) | |
download | searxng-6df41728872934fe0e7f12c0a272d370f50d26a9.tar.gz searxng-6df41728872934fe0e7f12c0a272d370f50d26a9.zip |
[fix] allow settin custom locale from settins.yml
Diffstat (limited to 'searx/preferences.py')
-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 |