diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index 702fcaa7c9..d53106bf18 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -27,6 +27,7 @@ import net.osmand.osm.MapPoiTypes; import net.osmand.osm.PoiCategory; import net.osmand.osm.PoiType; import net.osmand.plus.OsmAndFormatter; +import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandSettings; import net.osmand.plus.OsmandSettings.MetricsConstants; @@ -43,6 +44,7 @@ import net.osmand.plus.widgets.tools.ClickableSpanTouchListener; import net.osmand.plus.wikipedia.WikiArticleHelper; import net.osmand.plus.wikipedia.WikipediaArticleWikiLinkFragment; import net.osmand.plus.wikipedia.WikipediaDialogFragment; +import net.osmand.plus.wikipedia.WikipediaPoiMenu; import net.osmand.util.Algorithms; import net.osmand.util.OpeningHoursParser; @@ -265,7 +267,9 @@ public class AmenityMenuBuilder extends MenuBuilder { button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - WikipediaDialogFragment.showInstance(mapActivity, amenity); + String preferredLocale = app.getSettings().MAP_PREFERRED_LOCALE.get(); + WikipediaDialogFragment.showInstance(mapActivity, amenity, + WikipediaPoiMenu.getWikiArticleLocale(app, preferredLocale, amenity)); } }); button.setAllCaps(true);