diff --git a/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java b/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java index f59fb006ab..1a39a3d059 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/MapObject.java @@ -191,6 +191,7 @@ public abstract class MapObject implements Comparable { } public String getEnName(boolean transliterate) { + System.out.println("Get name"); if (!Algorithms.isEmpty(enName)) { return this.enName; } else if (!Algorithms.isEmpty(getName()) && transliterate) { diff --git a/OsmAnd/src/net/osmand/plus/poi/NominatimPoiFilter.java b/OsmAnd/src/net/osmand/plus/poi/NominatimPoiFilter.java index c70cff6bb7..bbc4eed175 100644 --- a/OsmAnd/src/net/osmand/plus/poi/NominatimPoiFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/NominatimPoiFilter.java @@ -138,14 +138,7 @@ public class NominatimPoiFilter extends PoiUIFilter { a.setId(Long.parseLong(parser.getAttributeValue("", "place_id"))); //$NON-NLS-1$ //$NON-NLS-2$ String name = parser.getAttributeValue("", "display_name"); //$NON-NLS-1$//$NON-NLS-2$ a.setName(name); - log.debug("Setting english name:"); - log.debug("is CJK sign? : " + CustomTransliterationHelper.isCharCJK(name.charAt(0))); - if (CustomTransliterationHelper.isCharCJK(name.charAt(0))) { - a.setEnName(CustomTransliterationHelper.japanese2Romaji(name)); - } else { - a.setEnName(Junidecode.unidecode(name)); - } - + a.setEnName(Junidecode.unidecode(name)); a.setSubType(parser.getAttributeValue("", "type")); //$NON-NLS-1$//$NON-NLS-2$ PoiType pt = poiTypes.getPoiTypeByKey(a.getSubType()); a.setType(pt != null ? pt.getCategory() : poiTypes.getOtherPoiCategory()); diff --git a/OsmAnd/src/net/osmand/plus/render/TextRenderer.java b/OsmAnd/src/net/osmand/plus/render/TextRenderer.java index dc33190128..07ea27ce5a 100644 --- a/OsmAnd/src/net/osmand/plus/render/TextRenderer.java +++ b/OsmAnd/src/net/osmand/plus/render/TextRenderer.java @@ -237,12 +237,7 @@ public class TextRenderer { TextDrawInfo text = rc.textToDraw.get(i); if (text.text != null && text.text.length() > 0) { if (preferredLocale.length() > 0) { - - if (CustomTransliterationHelper.isCharCJK(text.text.charAt(0))) { - text.text = CustomTransliterationHelper.japanese2Romaji(text.text); - } else { - text.text = Junidecode.unidecode(text.text); - } + text.text = Junidecode.unidecode(text.text); }