Update MapObject.java

This commit is contained in:
vshcherb 2021-02-16 14:13:48 +01:00 committed by GitHub
parent 4733919c3c
commit 6f0e0ae21c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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