searx/tests
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.
2021-02-04 19:53:59 -07:00
..
robot [enh] py3 compatibility 2017-05-15 12:02:30 +02:00
unit [fix] get correct locale with country from browser 2021-02-04 19:53:59 -07:00
__init__.py Force admins to set secret_key if debug mode is disabled 2020-10-09 18:31:42 +02:00