searxng/searx/data
Markus Heiser 6579d6d558 [fix] qwant - API error::locale must be one ..
The request function should not request a language (aka locale) that is not
supported by qwant. Select a locale like zh-TW ends in qwant's API error:

  ERROR searx.engines.qwant news: exception : \
  API error::locale must be one of the following values: \
    en_gb, en_ie, en_us, en_ca, en_my, en_au, en_nz, de_de, de_ch, de_at, fr_fr, \
    fr_be, fr_ch, fr_ca, fr_ad, fc_ca, co_fr, es_es, es_ar, es_cl, es_co, es_mx, \
    es_pe, es_ad, ca_es, ca_ad, ca_fr, eu_es, eu_fr, it_it, it_ch, pt_pt, pt_ad, \
    nl_be, nl_nl

The existing searx.utils.match_language function is unsuitable for this purpose,
it is replaced by function searx.locales.get_engine_locale that is based on the
methods from the babel package.

The quant's _fetch_supported_languages function has been revised to filter out
languages 8aka locales) not supported by qwant.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-08-14 10:36:14 +02:00
..
__init__.py [mod] remove deprecate code 2022-01-29 08:54:12 +01:00
ahmia_blacklist.txt Update searx.data - update_ahmia_blacklist.py 2022-07-29 02:01:04 +00:00
currencies.json Update searx.data - update_currencies.py 2022-07-29 02:01:30 +00:00
engine_descriptions.json Update searx.data - update_engine_descriptions.py 2022-08-10 21:48:34 +02:00
engines_languages.json [fix] qwant - API error::locale must be one .. 2022-08-14 10:36:14 +02:00
external_bangs.json [upd] searx/data/external_bangs.json 2022-01-12 19:37:13 +01:00
external_urls.json [mod] add external_urls.json and wikidata_units.json 2020-10-28 08:09:25 +01:00
osm_keys_tags.json [enh] openstreetmap / map template: improve results 2021-06-09 18:08:23 +02:00
useragents.json Update searx.data - update_firefox_version.py 2022-07-29 02:01:08 +00:00
wikidata_units.json Update searx.data - update_wikidata_units.py 2022-06-29 01:52:03 +00:00