iPhonePick localization

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

iPhonePick localization

Post by genie » Thu Dec 20, 2012 5:52 am

Hello!

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?


Thanks,
Genie

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhonePick localization

Post by Mark » Thu Dec 20, 2012 12:05 pm

Hi Genie,

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

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: iPhonePick localization

Post by genie » Wed Dec 26, 2012 6:54 am

Hi Mark,

Thanks for your response...

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?


Thanks,
Genie

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhonePick localization

Post by Mark » Wed Dec 26, 2012 10:43 am

Hi Genie,

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

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: iPhonePick localization

Post by genie » Thu Dec 27, 2012 2:32 am

This might be a dumb question...sorry...but..

What do we mean by "current keyboard"? How do I set or change that?


Thanks,
Genie

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhonePick localization

Post by Mark » Thu Dec 27, 2012 11:44 am

Genie,

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.

You can find everything about this on the 'net: http://qery.us/3cr

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

Post Reply