summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLCompassDirectionFormatter.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/darwin/src/MGLCompassDirectionFormatter.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/darwin/src/MGLCompassDirectionFormatter.m')
-rw-r--r--platform/darwin/src/MGLCompassDirectionFormatter.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLCompassDirectionFormatter.m b/platform/darwin/src/MGLCompassDirectionFormatter.m
index efda5705a4..f719745ce6 100644
--- a/platform/darwin/src/MGLCompassDirectionFormatter.m
+++ b/platform/darwin/src/MGLCompassDirectionFormatter.m
@@ -1,5 +1,7 @@
#import "MGLCompassDirectionFormatter.h"
+#import "NSBundle+MGLAdditions.h"
+
#define wrap(value, min, max) \
(fmod((fmod((value - min), (max - min)) + (max - min)), (max - min)) + min)