English name fix #11463
This commit is contained in:
parent
0a18414f8f
commit
aa846ab405
1 changed files with 4 additions and 1 deletions
|
@ -183,7 +183,10 @@ 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")) {
|
||||||
return getEnName(transliterate);
|
// for some objects like wikipedia, english name is stored 'name' tag
|
||||||
|
if (Algorithms.isEmpty(enName)) {
|
||||||
|
return getEnName(transliterate);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// get name
|
// get name
|
||||||
if (names != null) {
|
if (names != null) {
|
||||||
|
|
Loading…
Reference in a new issue