diff options
author | Alexandre Flament <alex@al-f.net> | 2021-09-13 08:37:25 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-09-24 20:12:18 +0200 |
commit | 6f11b61cd5eebd0d9b046be20f4f225803279c67 (patch) | |
tree | 2581a1e26e30289bc2ee96c212e8b21da15a12ff /searx/engines/openstreetmap.py | |
parent | e63410d2f4c7946896be3c53fe3bc423fd599dd6 (diff) | |
download | searxng-6f11b61cd5eebd0d9b046be20f4f225803279c67.tar.gz searxng-6f11b61cd5eebd0d9b046be20f4f225803279c67.zip |
[fix] openstreetmap engine: map "all" language to English
Diffstat (limited to 'searx/engines/openstreetmap.py')
-rw-r--r-- | searx/engines/openstreetmap.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.py index 9f1fe94c9..07d536725 100644 --- a/searx/engines/openstreetmap.py +++ b/searx/engines/openstreetmap.py @@ -220,6 +220,7 @@ def fetch_wikidata(nominatim_json, user_langage): wd_to_results.setdefault(wd_id, []).append(result) if wikidata_ids: + user_langage = 'en' if user_langage == 'all' else user_langage wikidata_ids_str = " ".join(wikidata_ids) query = wikidata_image_sparql.replace('%WIKIDATA_IDS%', sparql_string_escape(wikidata_ids_str)).replace( '%LANGUAGE%', sparql_string_escape(user_langage) |