mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
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. |
||
|---|---|---|
| .. | ||
| engines | ||
| settings | ||
| __init__.py | ||
| test_answerers.py | ||
| test_engines_init.py | ||
| test_plugins.py | ||
| test_poolrequests.py | ||
| test_preferences.py | ||
| test_query.py | ||
| test_results.py | ||
| test_search.py | ||
| test_settings_loader.py | ||
| test_standalone_searx.py | ||
| test_utils.py | ||
| test_webadapter.py | ||
| test_webapp.py | ||
| test_webutils.py | ||