1

UIWebView's keyboard is pretty cool with its next/previous and done buttons. However, I was not able to find and change the button titles. The titles are always in english no matter in which language the system is running.

cocoafan
  • 4,884
  • 4
  • 37
  • 45
  • Mine change correctly when I switch the phone's language. – ceejayoz Jul 06 '11 at 13:49
  • Sorry, I mean UIWebView not safari. – cocoafan Jul 06 '11 at 14:01
  • Unless you have your own keyboard designed by you which overrides stock one, your unable to change stock keyboard language (it's taken from iOS language set via Preferences > General > International). – matm Jul 06 '11 at 14:11

3 Answers3

5

I have been looking for the answer to this for a while for my PhoneGap based application, and at last I found the answer here: UIWebview Localization.

The clue is to set 'CFBundleAllowMixedLocalizations' to 'Yes' in your info.plist. That really made my day :)

Community
  • 1
  • 1
havard
  • 178
  • 1
  • 7
0

You can set your own view on top of the keyboard. It is really easy after 3.2 and I have some sample code in this answer. That means you can use your own buttons and even set localized text there.

EDIT: That was a bad answer :) Sorry, I didn't see the 'mobile-safari' tag. But in my case, I also get localized versions of the keyboard previous/next buttons.

Community
  • 1
  • 1
phi
  • 10,634
  • 6
  • 53
  • 88
0

Unless you have your own keyboard designed by you which overrides stock one, you can't do that.
Stock keyboard's language is taken from iOS language setting (via Preferences > General > International).

matm
  • 7,059
  • 5
  • 36
  • 50
  • I don't think this is true. The first thing I did was change the device language, but regardless of the region/language settings, the buttons always come up in English. I've been fighting with this on iOS 5.1, 6, and 7. Still don't have the solution... – Ampers4nd Nov 12 '13 at 00:30
  • Havard's answer and link are correct.l Changing the device language only works if you have set the correct flag in the Info.plist. – Ampers4nd Nov 12 '13 at 00:35