Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translating "Done" button on iOS keyboard to other language

Using Cordova/Phonegap, what is the easiest way to translate the "Done" button present on the iOS virtual keyboard?

For instance, my iPhone is configured as using French language.
However, the button still shows "Done" button and not the classic French adapted word: "Ok".

like image 581
Mik378 Avatar asked Sep 21 '14 00:09

Mik378


1 Answers

I was facing the same problem with my cordova app. I fixed it with a plugin that writes in the Info.plist

<plugin id="com.example.plugin" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
    <name>Example</name>
    <description>A label translate example</description>    
    <platform name="ios">
        <config-file target="*-Info.plist">
            <key>CFBundleAllowMixedLocalizations</key>
            <array>
                <string>Yes</string>
            </array>
            <key>CFBundleLocalizations</key>
            <array>
                <string>fr</string>
            </array>
            <key>CFBundleDevelopmentRegion</key>
            <array>
                <string>fr_FR</string>
            </array>
        </config-file>  
    </platform>
</plugin>
like image 153
creal Avatar answered Sep 30 '22 16:09

creal