Allow to disable en transliteration

This commit is contained in:
ivanPyrohivskyi 2021-02-16 13:24:12 +02:00
parent 7ee01b1f6d
commit 4733919c3c

View file

@ -182,7 +182,7 @@ public abstract class MapObject implements Comparable<MapObject> {
public String getName(String lang, boolean transliterate) { public String getName(String lang, boolean transliterate) {
if (lang != null && lang.length() > 0) { if (lang != null && lang.length() > 0) {
if (lang.equals("en")) { if (lang.equals("en") && !getEnName(transliterate).isEmpty()) {
// ignore transliterate option here for backward compatibility // ignore transliterate option here for backward compatibility
return getEnName(true); return getEnName(true);
} else { } else {