Update MapObject.java
This commit is contained in:
parent
4733919c3c
commit
6f0e0ae21c
1 changed files with 2 additions and 3 deletions
|
@ -182,9 +182,8 @@ 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") && !getEnName(transliterate).isEmpty()) {
|
if (lang.equals("en")) {
|
||||||
// ignore transliterate option here for backward compatibility
|
return getEnName(transliterate);
|
||||||
return getEnName(true);
|
|
||||||
} else {
|
} else {
|
||||||
// get name
|
// get name
|
||||||
if (names != null) {
|
if (names != null) {
|
||||||
|
|
Loading…
Reference in a new issue