views:

53

answers:

2

I know there is a question about this subject already but I think it's possible to change the text of the done button of a keyboard, because many of the apps I use are in french and the text of the done button is "accéder".

But I don't know how to do this?

+2  A: 

You can't set it to arbitrary text, but you can make it a canned word by setting the returnKeyType on whatever text field or view is being used for editing. Possible values of UIReturnKeyType are here:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html%23//apple_ref/occ/intf/UITextInputTraits

These are generally localized with the app, though. If your app supports an "fr" localization, and the device is set to French, you should get the localized versions of the keyboard keys.

quixoto
+1  A: 

The language of the keyboard can't be chosen by the app, the user can set which keyboard-language to prefer, and you can't choose what it should say on the return-button.

You can set the UIReturnKeyType, so that it will show something different than "return" (these will also be localized):

setReturnKeyType:(UIReturnKeyDefault|UIReturnKeyGo|UIReturnKeyGoogle|UIReturnKeyJoin|UIReturnKeyNext|UIReturnKeyRoute|UIReturnKeySearch|UIReturnKeySend|UIReturnKeyYahoo|UIReturnKeyDone|UIReturnKeyEmergencyCall)

@quixoto, I didn't see your answer until I had posted mine, sorry.

Emil