summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLUserLocationAnnotationView.m
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-04-21 11:10:41 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-24 16:13:08 -0700
commit6c9ca4be50e74a260d9cc2bc731fe56d85c353d2 (patch)
treef18339e7adc6b293b39c6765d6a4aa31188af6ce /platform/ios/src/MGLUserLocationAnnotationView.m
parentfd93cf969d060b5fee95a9c94097a92ab665d2d8 (diff)
downloadqtlocation-mapboxgl-6c9ca4be50e74a260d9cc2bc731fe56d85c353d2.tar.gz
[ios] Made SDK and iosapp localizable
Made storyboards and strings throughout the SDK and iosapp localizable. Replaced the compass image with an unlabeled image. Draw a localizable string atop it at runtime. Redefined NSLocalizedString() and NSLocalizedStringFromTable() macros to look at the SDK bundle rather than the main application bundle. This redefinition has no effect on the host application, because it’s in an internal header. That header must be included in all files that contain localizable strings. See NSBundle+MGLAdditions.h for a full explanation. Added a make rule that runs genstrings and ensures UTF-8 output (since genstrings insists on UTF-16). Use MGLCoordinateFormatter in iosapp for dropped pin callouts. Rely on subclasses of MGLPointAnnotation instead of annotation titles to distinguish between different kinds of point annotations.
Diffstat (limited to 'platform/ios/src/MGLUserLocationAnnotationView.m')
-rw-r--r--platform/ios/src/MGLUserLocationAnnotationView.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/ios/src/MGLUserLocationAnnotationView.m b/platform/ios/src/MGLUserLocationAnnotationView.m
index ac8dd0790b..d0497416b8 100644
--- a/platform/ios/src/MGLUserLocationAnnotationView.m
+++ b/platform/ios/src/MGLUserLocationAnnotationView.m
@@ -4,6 +4,7 @@
#import "MGLUserLocation_Private.h"
#import "MGLAnnotation.h"
#import "MGLMapView.h"
+#import "NSBundle+MGLAdditions.h"
const CGFloat MGLUserLocationAnnotationDotSize = 22.0;
const CGFloat MGLUserLocationAnnotationHaloSize = 115.0;
@@ -53,7 +54,7 @@ const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuck
self.annotation = [[MGLUserLocation alloc] initWithMapView:mapView];
_mapView = mapView;
[self setupLayers];
- self.accessibilityLabel = @"User location";
+ self.accessibilityLabel = NSLocalizedString(@"User location", @"Accessibility label");
}
return self;
}