From 48f66065e4152bf4c43f7ed10bf82d1a5c0d1a12 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Mon, 5 Feb 2018 16:44:38 +0200 Subject: [PATCH] Translate renderer name in menu item description --- OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java index 5c8dfad8b9..0cdb357666 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java @@ -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) {