I'm wondering if localization is possible with iOS spinner.
Well, it's easy to localize the options because it's just some array...but how about the buttons?
From the dictionary:
button - Specifies if "Cancel" and/or "Done" buttons should be forced to be displayed with the picker dialog. The default behavior is device dependent, exhibiting the most native operation.
• cancel - display the Cancel button on the Picker
• done - display the Done button on the Picker
• cancelDone - display the Cancel and Done buttons on the Picker
It's just cancel & done buttons...but I wanted to be able to localize the button if I switch to Spanish or French. How do I do that?
I think this is determined by iOS rather than the apps. Not only it is impossible to change this, but from a user perspective it isn't even something your app is supposed to change. As a user, I'd be quite upset if an app changed my language settings or even the time of my device.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
But, even if I change my language under settings, Spanish for example, the buttons would still say "DONE/CANCEL"...shouldn't it say "CANCELAR" for instance?
This doesn't depend on your language settings but on the current keyboard. This is independent from language settings and app localisation.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
You can add and remove keyboards in the iPhone settings app and if you have multiple keyboards activated, you can press-and-hold the globe key next to the space bar to view a list of available keyboards and select the one you want to use.
I created an external that reports the current keyboard: http://qery.us/3cs
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode