tags:

views:

34

answers:

2

in iphone sdk 3.0 they have given option of international keyboards.user can choose the keyboard that he want. but how can we localize our application. for e.g if user have chosen a French language keyboard we should interact with him in french. like alerts and other things should get display in french language.

how can we do this programatically?Is their any option by which we can convert string from english to user's chosen language?

kindly help me

+2  A: 

Have a look at the Internationalization Programming Topics on the iPhone Dev Center.

Thomas Müller
+2  A: 

There is no documented way to know when keyboard changes, nor a documented way to get the current keyboard mode.


With undocumented APIs, you can listen to the UIKeyboardCurrentInputModeDidChangeNotification local notification.

The current input mode can be found from the com.apple.Preferences preferences, using

return CFPreferencesCopyAppValue(CFSTR("KeyboardLastUsed"),
        CFSTR("/var/mobile/Library/Preferences/com.apple.Preferences"));

(Note: to test on simulator you need to replace /var/mobile/ by /Users/<user-name>/Library/Application Support/iPhone Simulator/<sdk-version>/.)

KennyTM
thanks Kennyhave tried this, i mean hv u implemented customized keyboard?regardsshishir
shishir.bobby