Hi,

Perhaps I should explain a little more, because some people seem to think this 
feature was already available in LiveCode.

Currently, livecode has functions to retrieve the the current language settings 
of the iPhone. With iphonePreferredLanguages, you can find out which language 
to use if your application is multilingual. iPhoneCurrentLocale can be used to 
retrieve the current interface language. A likely scenario is that the current 
user interface is German and the preferred languages are 1) German and 2) 
English. This means that a multilingual app may use English if only French and 
English are available.

Currently, LiveCode doesn't allow you to find out which input method is 
currently used. The user may choose a Chinese keyboard while the preferred 
languages are German and English and the interface language is German. To find 
out which keyboard is used, you can now call the extCurrentInputMode function. 
With this external you now have all the info you may need:

iphonePreferredLanguages: list of languages in user's order of preference

iphoneCurrentLocale: the currently set language for the user interface of the 
iOS device

extCurrentInputMode: the language of the currently selected keyboard

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 17 feb 2012, at 05:50, Mark Schonewille wrote:

> Hi,
> 
> Because I'm doing a lot with RTL and East Asian languages lately and things 
> may go wrong if the user of my software uses the wrong keyboard, I wanted to 
> check the input language on iOS devices before the user starts typing. There 
> was no way to do this in LiveCode AFAIK and thus I decided to make a little 
> external.
> 
> The external is called ExtTextInputMode. The function extCurrentInputMode() 
> returns the language code of the currently selected keyboard.
> 
> The external is available for download from the private section of the 
> Economy-x-Talk website and is free for everyone who has made a donation 
> during the past year. Go to http://qery.us/1t8 for more information.
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to