Add getTranslatedItemName() to other class
This commit is contained in:
parent
b9e886ef64
commit
516881f8a5
2 changed files with 2 additions and 2 deletions
|
@ -250,6 +250,6 @@ public class MapStyleAction extends SwitchableAction<String> {
|
||||||
public String getActionText(OsmandApplication application) {
|
public String getActionText(OsmandApplication application) {
|
||||||
String currentSource = application.getSettings().RENDERER.get();
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -221,6 +221,6 @@ public class MapSourceAction extends SwitchableAction<Pair<String, String>> {
|
||||||
? application.getSettings().MAP_TILE_SOURCES.get()
|
? application.getSettings().MAP_TILE_SOURCES.get()
|
||||||
: application.getString(R.string.vector_data);
|
: 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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue