diff options
author | Alexandre Flament <alex@al-f.net> | 2022-12-16 20:28:57 +0000 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2023-02-17 15:17:36 +0000 |
commit | 6748e8e2d5eff3c2202b2a714afb5534b1573101 (patch) | |
tree | 57f6fcf3d5b9bb5ee3b4a03aaf8aac2a53ee7106 /searx/settings_defaults.py | |
parent | 54389a29feb3feea5a868f7b3b83c9718fb71014 (diff) | |
download | searxng-6748e8e2d5eff3c2202b2a714afb5534b1573101.tar.gz searxng-6748e8e2d5eff3c2202b2a714afb5534b1573101.zip |
Add "Auto-detected" as a language.
When the user choose "Auto-detected", the choice remains on the following queries.
The detected language is displayed.
For example "Auto-detected (en)":
* the next query language is going to be auto detected
* for the current query, the detected language is English.
This replace the autodetect_search_language plugin.
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r-- | searx/settings_defaults.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 7baa23cac..6e98076ff 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -18,7 +18,7 @@ searx_dir = abspath(dirname(__file__)) logger = logging.getLogger('searx') OUTPUT_FORMATS = ['html', 'csv', 'json', 'rss'] -LANGUAGE_CODES = ['all'] + list(l[0] for l in languages) +LANGUAGE_CODES = ['all', 'auto'] + list(l[0] for l in languages) SIMPLE_STYLE = ('auto', 'light', 'dark') CATEGORIES_AS_TABS = { 'general': {}, |