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) {
|
||||
if (lang != null && lang.length() > 0) {
|
||||
if (lang.equals("en")) {
|
||||
// for some objects like wikipedia, english name is stored 'name' tag
|
||||
if (Algorithms.isEmpty(enName)) {
|
||||
return getEnName(transliterate);
|
||||
}
|
||||
} else {
|
||||
// get name
|
||||
if (names != null) {
|
||||
|
|
Loading…
Reference in a new issue