Merge pull request #11463 from osmandapp/transliterate
Fix transliterate
This commit is contained in:
commit
cbc4e1a427
1 changed files with 2 additions and 5 deletions
|
@ -16,13 +16,11 @@ import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Set;
|
|
||||||
import java.util.zip.GZIPInputStream;
|
import java.util.zip.GZIPInputStream;
|
||||||
|
|
||||||
|
|
||||||
|
@ -184,9 +182,8 @@ public abstract class MapObject implements Comparable<MapObject> {
|
||||||
if (lang != null && lang.length() > 0) {
|
if (lang != null && lang.length() > 0) {
|
||||||
if (lang.equals("en")) {
|
if (lang.equals("en")) {
|
||||||
// for some objects like wikipedia, english name is stored 'name' tag
|
// for some objects like wikipedia, english name is stored 'name' tag
|
||||||
if (!Algorithms.isEmpty(enName)) {
|
String enName = getEnName(transliterate);
|
||||||
return getEnName(transliterate);
|
return !Algorithms.isEmpty(enName) ? enName : getName();
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// get name
|
// get name
|
||||||
if (names != null) {
|
if (names != null) {
|
||||||
|
|
Loading…
Reference in a new issue