Repository navigation
Feature: Dynamically localize compass text - #949
friedbunny wants to merge 1 commit into
Conversation
|
Oh, and this doesn't work in the simulator — I believe language is (mistakenly) always taken from the system, not from the iOS simulator. |
|
Oh, interesting... So this hasn't come up in past with our iOS SDK. The image is actually cribbed from MapKit by use of UIKit-Artwork-Extractor. I'm going to close here for now, but the PR will stick around and we can revisit. Do you have a good sense @friedbunny what Maps.app does here? |
|
iOS 8 Maps follows this strategy (AFAIK) — I took the blanks from MapKit.framework. 😅 |
|
Cool, much appreciated and ❤️ the attention to detail. We don't yet have localization on the roadmap, but it will become increasingly important, including at the GL labels level. We'll always have this here, but I think closing for now rather than leaving open is a good move. I WON'T FORGET U LOCALIZED COMPASS |
|
Sure thing, this is definitely not a priority. Just one of those little touches that puts a twinkle in my eye and doesn't trod anybody's toes too terribly. And since I'm at it, perhaps I'll add the missing |
If you have them from Apple, yeah. Per #843 we are going to do our style sprites differently but if we're copying Apple resources, I'm all for grabbing their |
|
#4783 made the compass text localizable using a similar strategy as in this PR (but slightly more robust). However, no actual localizations have been added yet. |
Draw the compass text dynamically based on the user's device language. This adds
CompassBlank.pngat the three necessary scales.I don't know what the localization plans are (and being pre-beta it's surely not a high priority), so this hardcodes the different localized strings rather than messing with anything more involved. Once localization gets on the roadmap this will have to be revisited.
Japanese/Chinese
English/Default
Apple Maps in Japanese
... not sure why I've been so fixated on compasses, but hopefully this is useful. I also tossed in
[email protected]for the hell of it.