summaryrefslogtreecommitdiff
path: root/searx/engines/openstreetmap.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-09-13 08:37:25 +0200
committerAlexandre Flament <alex@al-f.net>2021-09-24 20:12:18 +0200
commit6f11b61cd5eebd0d9b046be20f4f225803279c67 (patch)
tree2581a1e26e30289bc2ee96c212e8b21da15a12ff /searx/engines/openstreetmap.py
parente63410d2f4c7946896be3c53fe3bc423fd599dd6 (diff)
downloadsearxng-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.py1
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)