From 64a346a646dda45ba43cdbd97a7e45e08fcaef47 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Wed, 21 Feb 2018 14:16:11 +0300 Subject: [PATCH] Reverted wifi string key --- android/res/layout/fragment_editor.xml | 2 +- android/src/com/mapswithme/maps/MwmApplication.java | 2 +- iphone/Maps/Classes/MapsAppDelegate.mm | 2 +- iphone/Maps/UI/Editor/MWMEditorViewController.mm | 2 +- .../Content/RegularCell/MWMPlacePageRegularCell.mm | 2 +- map/framework.cpp | 5 +++-- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/android/res/layout/fragment_editor.xml b/android/res/layout/fragment_editor.xml index 08793eaebf..0fb8651c58 100644 --- a/android/res/layout/fragment_editor.xml +++ b/android/res/layout/fragment_editor.xml @@ -257,7 +257,7 @@ android:layout_marginStart="@dimen/editor_margin_left" android:layout_toLeftOf="@+id/sw__wifi" android:layout_toStartOf="@+id/sw__wifi" - android:text="@string/core_wifi"/> + android:text="@string/wifi"/> const & cells, UITableV // TODO(Vlad, IgorTomko): Support all other possible Internet statuses. [tCell configWithDelegate:self icon:[UIImage imageNamed:@"ic_placepage_wifi"] - text:L(@"core_wifi") + text:L(@"wifi") on:m_mapObject.GetInternet() == osm::Internet::Wlan]; break; } diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm index 3119a74536..82acf283e1 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm @@ -73,7 +73,7 @@ break; case MetainfoRows::Internet: self.toggleImage.hidden = YES; - name = @"core_wifi"; + name = @"wifi"; break; case MetainfoRows::Coordinate: self.toggleImage.hidden = NO; diff --git a/map/framework.cpp b/map/framework.cpp index bf89c65ebd..65d80ae5a5 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -397,7 +397,8 @@ Framework::Framework(FrameworkParams const & params) m_stringsBundle.SetDefaultString("core_placepage_unknown_place", "Unknown Place"); m_stringsBundle.SetDefaultString("core_my_places", "My Places"); m_stringsBundle.SetDefaultString("core_my_position", "My Position"); - m_stringsBundle.SetDefaultString("core_wifi", "WiFi"); + // Wi-Fi string is used in categories that's why does not have core_ prefix + m_stringsBundle.SetDefaultString("wifi", "WiFi"); m_model.InitClassificator(); m_model.SetOnMapDeregisteredCallback(bind(&Framework::OnMapDeregistered, this, _1)); @@ -803,7 +804,7 @@ void Framework::FillInfoFromFeatureType(FeatureType const & ft, place_page::Info feature::TypesHolder buildingHolder; buildingHolder.Assign(classif().GetTypeByPath({"building"})); - info.SetLocalizedWifiString(m_stringsBundle.GetString("core_wifi")); + info.SetLocalizedWifiString(m_stringsBundle.GetString("wifi")); if (ftypes::IsAddressObjectChecker::Instance()(ft)) info.SetAddress(GetAddressInfoAtPoint(feature::GetCenter(ft)).FormatHouseAndStreet());