summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-08-03 15:13:00 +0200
committerAlexandre Flament <alex@al-f.net>2021-08-03 15:44:45 +0200
commitf30d01ffabd50d7bb1a17da04e768c075bb8789d (patch)
tree4db07dd442d08eb801f295b4290256925331e7ff /searx/preferences.py
parentbd17544f82809ef57f09aa95dc735e7c9056717e (diff)
downloadsearxng-f30d01ffabd50d7bb1a17da04e768c075bb8789d.tar.gz
searxng-f30d01ffabd50d7bb1a17da04e768c075bb8789d.zip
[mod] settings.yml: remove locales
There are detected from the searx/translations directory
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index e4a2ebecd..69832c052 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -11,6 +11,7 @@ from urllib.parse import parse_qs, urlencode
from searx import settings, autocomplete
from searx.languages import language_codes as languages
+from searx.locales import LOCALE_NAMES
from searx.webutils import VALID_LANGUAGE_CODE
@@ -340,7 +341,7 @@ class Preferences:
'locale': EnumStringSetting(
settings['ui']['default_locale'],
is_locked('locale'),
- choices=list(settings['locales'].keys()) + ['']
+ choices=list(LOCALE_NAMES.keys()) + ['']
),
'autocomplete': EnumStringSetting(
settings['search']['autocomplete'],