summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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