fix strings for POI Overlay

This commit is contained in:
sonora 2017-11-09 08:25:42 +01:00
parent 89b19a95b2
commit 01e882e70c
3 changed files with 15 additions and 15 deletions

View file

@ -631,8 +631,8 @@
<string name="shared_string_favorites">Favoriten</string>
<string name="layer_osm_bugs">OSM-Notizen (online)</string>
<string name="layer_poi">POI…</string>
<string name="layer_amenity_label">Punktbezeichnungen</string>
<string name="layer_poi">POI Overlay</string>
<string name="layer_amenity_label">POI-Overlay-Bezeichnungen</string>
<string name="layer_map">Kartenquelle…</string>
<string name="menu_layers">Kartenebenen</string>
<string name="context_menu_item_search_poi">Suche POI</string>
@ -807,8 +807,8 @@
<string name="show_view_angle">Blickrichtung einblenden</string>
<string name="map_view_3d_descr">3D-Kartenansicht verwenden.</string>
<string name="map_view_3d">3D-Kartenansicht</string>
<string name="show_poi_over_map_description">Zuletzt gewählte POIs auf der Karte anzeigen.</string>
<string name="show_poi_over_map">POIs anzeigen</string>
<string name="show_poi_over_map_description">Zuletzt gewähltes POIs Overlax auf der Karte anzeigen.</string>
<string name="show_poi_over_map">POI Overlay anzeigen</string>
<string name="map_tile_source_descr">Online- oder Offline-Quelle für Karte (Kacheln).</string>
<string name="map_tile_source">Kartenquelle (Kacheln)</string>
<string name="map_source">Kartenquelle</string>

View file

@ -1198,7 +1198,7 @@
<string name="show_zoom_buttons_navigation">Show zoom buttons</string>
<string name="save_as_favorites_points">Save as group of favorites</string>
<string name="select_destination_and_intermediate_points">Select destinations</string>
<string name="layer_amenity_label">Point labels</string>
<string name="layer_amenity_label">POI overlay labels</string>
<string name="loading_smth">Loading %1$s…</string>
<string name="map_widget_plain_time">Current time</string>
<string name="gpx_wpt">Waypoint</string>
@ -2340,7 +2340,7 @@
<string name="layer_yandex_traffic">Yandex traffic</string>
<string name="layer_route">Route</string>
<string name="layer_osm_bugs">OSM Notes (online)</string>
<string name="layer_poi">POI…</string>
<string name="layer_poi">POI Overlay</string>
<string name="layer_map">Map source…</string>
<string name="menu_layers">Map layers</string>
<string name="context_menu_item_search_poi">Search POI</string>
@ -2492,8 +2492,8 @@
<string name="show_view_angle">Display viewing direction</string>
<string name="map_view_3d_descr">Enable 3D view of the map.</string>
<string name="map_view_3d">Map View 3D</string>
<string name="show_poi_over_map_description">Show POI over map (use last chosen filter).</string>
<string name="show_poi_over_map">Show POI</string>
<string name="show_poi_over_map_description">Show the last selected POI overlay on the map.</string>
<string name="show_poi_over_map">Show POI overlay</string>
<string name="map_tile_source_descr">Choose the source of online or cached map tiles.</string>
<string name="map_tile_source">Tile map source</string>
<string name="map_source">Map source</string>

View file

@ -271,6 +271,13 @@ public class ConfigureMapMenu {
.setIcon(R.drawable.ic_action_info_dark)
.setSecondaryIcon(R.drawable.ic_action_additional_option)
.setListener(l).createItem());
selected = settings.SHOW_POI_LABEL.get();
adapter.addItem(new ContextMenuItem.ItemBuilder()
.setTitleId(R.string.layer_amenity_label, activity)
.setSelected(settings.SHOW_POI_LABEL.get())
.setColor(selected ? R.color.osmand_orange : ContextMenuItem.INVALID_ID)
.setIcon(R.drawable.ic_action_text_dark)
.setListener(l).createItem());
/*
ContextMenuItem item = createProperties(customRules, null, R.string.rendering_category_transport, R.drawable.ic_action_bus_dark,
@ -451,13 +458,6 @@ public class ConfigureMapMenu {
b.show();
}
}).createItem());
selected = settings.SHOW_POI_LABEL.get();
adapter.addItem(new ContextMenuItem.ItemBuilder()
.setTitleId(R.string.layer_amenity_label, activity)
.setSelected(settings.SHOW_POI_LABEL.get())
.setColor(selected ? R.color.osmand_orange : ContextMenuItem.INVALID_ID)
.setIcon(R.drawable.ic_action_text_dark)
.setListener(l).createItem());
selected = app.getSelectedGpxHelper().isShowingAnyGpxFiles();
adapter.addItem(new ContextMenuItem.ItemBuilder()
.setTitleId(R.string.layer_gpx_layer, activity)