diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-03-29 16:12:55 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-03-30 11:47:09 -0700 |
commit | 003caddbc0ad3bf9f7cf189996733d552977d5da (patch) | |
tree | 6cf4ceec61719ba049a1b5669e57d93c3e0f6ba7 | |
parent | 6c92199a16a9fc6648244547a183bc80da7a56d7 (diff) | |
download | qtlocation-mapboxgl-003caddbc0ad3bf9f7cf189996733d552977d5da.tar.gz |
[ios] Localized map view proxy accessibility hint
-rw-r--r-- | platform/ios/resources/Base.lproj/Localizable.strings | 8 | ||||
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/platform/ios/resources/Base.lproj/Localizable.strings b/platform/ios/resources/Base.lproj/Localizable.strings index fc2e8c8fec..3f59262d71 100644 --- a/platform/ios/resources/Base.lproj/Localizable.strings +++ b/platform/ios/resources/Base.lproj/Localizable.strings @@ -10,6 +10,9 @@ /* No comment provided by engineer. */ "CANCEL" = "Cancel"; +/* Accessibility hint for closing the selected annotation’s callout view and returning to the map */ +"CLOSE_CALLOUT_A11Y_HINT" = "Returns to the map"; + /* Accessibility hint */ "COMPASS_A11Y_HINT" = "Rotates the map to face due north"; @@ -52,13 +55,12 @@ /* Action sheet title */ "SDK_NAME" = "Mapbox iOS SDK"; +/* Developer-only SDK update notification; {latest version, in format x.x.x} */ +"SDK_UPDATE_AVAILABLE" = "Mapbox iOS SDK version %@ is now available:"; /* User-friendly error description */ "STYLE_NOT_FOUND_DESC" = "The map failed to load because the style can’t be found or is incompatible."; -/* Developer-only SDK update notification; {latest version, in format x.x.x} */ -"SDK_UPDATE_AVAILABLE" = "Mapbox iOS SDK version %@ is now available:"; - /* Telemetry prompt message */ "TELEMETRY_DISABLED_MSG" = "You can help make OpenStreetMap and Mapbox maps better by contributing anonymous usage data."; diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 9bad58801f..f5c3ce3ba6 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -209,7 +209,7 @@ public: { self.accessibilityTraits = UIAccessibilityTraitButton; self.accessibilityLabel = [self.accessibilityContainer accessibilityLabel]; - self.accessibilityHint = @"Returns to the map"; + self.accessibilityHint = NSLocalizedStringWithDefaultValue(@"CLOSE_CALLOUT_A11Y_HINT", nil, nil, @"Returns to the map", @"Accessibility hint for closing the selected annotation’s callout view and returning to the map"); } return self; } |