mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
bing engine: _fetch_supported_languages: don't use the language code as a country
ref #1029
This commit is contained in:
parent
d1334beb4f
commit
f00cdb5e51
@ -145,9 +145,7 @@ def _fetch_supported_languages(resp):
|
|||||||
lang, nation = (setlang.split('-', maxsplit=1) + [None,])[:2] # fmt: skip
|
lang, nation = (setlang.split('-', maxsplit=1) + [None,])[:2] # fmt: skip
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
if not nation:
|
tag = lang + '-' + nation if nation else lang
|
||||||
nation = lang.upper()
|
|
||||||
tag = lang + '-' + nation
|
|
||||||
lang_tags.add(tag)
|
lang_tags.add(tag)
|
||||||
|
|
||||||
return list(lang_tags)
|
return list(lang_tags)
|
||||||
|
Loading…
Reference in New Issue
Block a user