Translate renderer name in menu item description

This commit is contained in:
Alexander Sytnyk 2018-02-05 16:44:38 +02:00
parent f027adf0eb
commit fd26d9d58d

View file

@ -1135,7 +1135,8 @@ public class ConfigureMapMenu {
if (storage == null) {
return "";
}
return storage.getName();
String translation = RendererRegistry.getTranslatedRendererName(activity, storage.getName());
return translation == null ? storage.getName() : translation;
}
protected String getDayNightDescr(final MapActivity activity) {