summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-02-18 00:56:27 +0100
committerAdam Tauber <asciimoo@gmail.com>2020-02-18 00:56:27 +0100
commit6df41728872934fe0e7f12c0a272d370f50d26a9 (patch)
tree683d10019fe9ee6229233e71ef559730c4dcbd10 /searx/preferences.py
parentab2f56e886b47924c2c2e992ca2954f1469621ab (diff)
downloadsearxng-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.py2
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