Actually, I need to translate only "done"/"pref"/"next" buttons at decimal pad keyboard to russian language or other. By the way, localization of the application in russian. Moreover, all other buttons like "cancel" at other control was translated automatically when I changed localization language. But not this. Can it be done without customization?
-
I need this for text keyboard and cordova project – Víctor Aug 06 '15 at 10:59
-
Can you attach screenshot to the question? – Vlad Papko Aug 06 '15 at 15:25
-
It will help you. http://stackoverflow.com/questions/12595970/iphone-change-keyboard-language-programmatically – Nikunj Aug 07 '15 at 12:41
3 Answers
It will help you.
iPhone: Change Keyboard language programmatically.
No this is not possible - user can only change their language in the settings.
However you can give the user an "English" keyboard if you choose (or ask them their preference)
you do this using: UIKeyboardTypeASCIICapable
You can change keyboard directly on the keyboard by pressing "globe icon" on the bottom row.
First, you have to enable those language for input in Settings. Then pressing the globe button on the keyboard would toggle between those languages.
-
I tryied, adding the french keyboard and changing with the globe, but still the word "Done" appears – Víctor Aug 07 '15 at 12:46
-
Why people upvote? this only changes the layout of the keyboard, but the done button still get not translated, which is the question – Víctor Aug 14 '15 at 08:48
I found the solution: You have to create a infoPlist.strings in your xCode project, and add this code:
/*
InfoPlist.strings
*/
"Done" = "OK";
Then, in your project-> Info, add your language (Spanish in my case).
Later, go back to your infoPlist file, and target "Spanish" in the right menu, under "Localization" tab.
In "Edit scheme", clicking next to the "stop application" button, click run->options and in "Application language" select "System language".
Repeat for all the languages of your app.
Success!!

- 3,029
- 3
- 28
- 43