forked from Archives/searxng
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.
c937a9e85f
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 | 4 years ago | |
data | 4 years ago | |
engines | 4 years ago | |
metrology | 4 years ago | |
plugins | 4 years ago | |
search | 4 years ago | |
shared | 4 years ago | |
static | 4 years ago | |
templates | 4 years ago | |
translations | 4 years ago | |
__init__.py | 4 years ago | |
autocomplete.py | 4 years ago | |
exceptions.py | 4 years ago | |
external_bang.py | 4 years ago | |
external_urls.py | 4 years ago | |
languages.py | 4 years ago | |
poolrequests.py | 4 years ago | |
preferences.py | 4 years ago | |
query.py | 4 years ago | |
raise_for_httperror.py | 4 years ago | |
results.py | 4 years ago | |
settings.yml | 4 years ago | |
settings_loader.py | 4 years ago | |
settings_robot.yml | 4 years ago | |
testing.py | 4 years ago | |
utils.py | 4 years ago | |
version.py | 4 years ago | |
webadapter.py | 4 years ago | |
webapp.py | 4 years ago | |
webutils.py | 4 years ago |