Do not transliterate if app language is ru or uk

This commit is contained in:
xmd5a 2017-04-03 12:42:13 +03:00
parent d18db9bbb1
commit ab2ed791b1

View file

@ -728,7 +728,7 @@ public class MapRenderRepositories {
if(requestedBox.getZoom() <= zoomOnlyForBasemaps && if(requestedBox.getZoom() <= zoomOnlyForBasemaps &&
"".equals(prefs.MAP_PREFERRED_LOCALE.get())) { "".equals(prefs.MAP_PREFERRED_LOCALE.get())) {
currentRenderingContext.preferredLocale = app.getLanguage(); currentRenderingContext.preferredLocale = app.getLanguage();
currentRenderingContext.transliterate = true; currentRenderingContext.transliterate = !"ru".equals(app.getLanguage()) && !"uk".equals(app.getLanguage());
} else { } else {
currentRenderingContext.preferredLocale = prefs.MAP_PREFERRED_LOCALE.get(); currentRenderingContext.preferredLocale = prefs.MAP_PREFERRED_LOCALE.get();
currentRenderingContext.transliterate = prefs.MAP_TRANSLITERATE_NAMES.get(); currentRenderingContext.transliterate = prefs.MAP_TRANSLITERATE_NAMES.get();