From aa846ab405ffcc72953a83a2a942e147ff171982 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 19 Apr 2021 12:38:33 +0200 Subject: [PATCH] English name fix #11463 --- OsmAnd-java/src/main/java/net/osmand/data/MapObject.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java b/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java index 79b3b8a349..e02b884e0a 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java @@ -183,7 +183,10 @@ public abstract class MapObject implements Comparable { public String getName(String lang, boolean transliterate) { if (lang != null && lang.length() > 0) { if (lang.equals("en")) { - return getEnName(transliterate); + // for some objects like wikipedia, english name is stored 'name' tag + if (Algorithms.isEmpty(enName)) { + return getEnName(transliterate); + } } else { // get name if (names != null) {