From 516881f8a5fd7fde473f65ed245d8919328f9cd6 Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Mon, 5 Apr 2021 09:25:07 +0300 Subject: [PATCH] Add getTranslatedItemName() to other class --- .../src/net/osmand/plus/quickaction/actions/MapStyleAction.java | 2 +- OsmAnd/src/net/osmand/plus/rastermaps/MapSourceAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java index 0938e4d121..5838bfc1a2 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java @@ -250,6 +250,6 @@ public class MapStyleAction extends SwitchableAction { public String getActionText(OsmandApplication application) { String currentSource = application.getSettings().RENDERER.get(); - return application.getString(R.string.map_quick_action_pattern, currentSource); + return application.getString(R.string.map_quick_action_pattern, getTranslatedItemName(application, currentSource)); } } \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/MapSourceAction.java b/OsmAnd/src/net/osmand/plus/rastermaps/MapSourceAction.java index 86043763ea..d81b1f12ed 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/MapSourceAction.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/MapSourceAction.java @@ -221,6 +221,6 @@ public class MapSourceAction extends SwitchableAction> { ? application.getSettings().MAP_TILE_SOURCES.get() : application.getString(R.string.vector_data); - return application.getString(R.string.map_quick_action_pattern, currentSource); + return application.getString(R.string.map_quick_action_pattern, getTranslatedItemName(application, currentSource)); } }