You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx
Marc Abonce Seguin c937a9e85f [fix] get correct locale with country from browser
Some of our interface locales include uppercase country codes,
which are separated by `_` instead of the more common `-`.
Also, a browser's `Accept-Language` header could be in lowercase.

This commit attempts to normalize those cases so a browser's
language+country codes can better match with our locales.

This solution assumes that our UI locales have nothing more than
language and optionally country. If we ever add a script specific
locale like `zh-Hant-TW` this would have to change to accomodate
that, but the idea would be pretty much the same as this fix.
4 years ago
..
answerers Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes 4 years ago
data [data] make engines.languages 4 years ago
engines Add Creative Commons search engine 4 years ago
metrology [fix] checker: fix engine statistics 4 years ago
plugins [mod] pylint: numerous minor code fixes 4 years ago
search [fix] checker: minor fix about language detection 4 years ago
shared [fix] checker: don't run the checker when uwsgi is not properly configured 4 years ago
static [mod] themes: remove legacy, courgette and pix-art themes 4 years ago
templates Merge pull request #2458 from MarcAbonce/hide-links-mobile2 4 years ago
translations [enh] update translations 4 years ago
__init__.py [mod] settings.yml: move brand settings to a dedicated section 4 years ago
autocomplete.py [fix] dbpedia autocomplete (and use HTTPS) 4 years ago
exceptions.py [enh] add raise_for_httperror 4 years ago
external_bang.py [mod] Add searx.data module 4 years ago
external_urls.py [mod] add external_urls.json and wikidata_units.json 4 years ago
languages.py [data] make engines.languages 4 years ago
poolrequests.py [enh] add raise_for_httperror 4 years ago
preferences.py Patch advanced search preferences 4 years ago
query.py fix empty colon in query from selecting Chinese 4 years ago
raise_for_httperror.py [enh] add raise_for_httperror 4 years ago
results.py [mod] results: don't crash when an engine don't have a category 4 years ago
settings.yml Add Creative Commons search engine 4 years ago
settings_loader.py [fix] pylint: use "raise ... from ..." 4 years ago
settings_robot.yml Let admins lock user preferences 4 years ago
testing.py Drop Python 2 (1/n): remove unicode string and url_utils 4 years ago
utils.py [fix] pylint: use "raise ... from ..." 4 years ago
version.py prepare release 0.18.0 4 years ago
webadapter.py [fix] pylint: use "raise ... from ..." 4 years ago
webapp.py [fix] get correct locale with country from browser 4 years ago
webutils.py Merge pull request #2237 from dalf/mod-engines-init 4 years ago