翻译“完成";然后将“完成"翻译为“完成". iOS键盘上的其他语言按钮 [英] Translating "Done" button on iOS keyboard to other language

查看:93
本文介绍了翻译“完成";然后将“完成"翻译为“完成". iOS键盘上的其他语言按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Cordova/Phonegap,翻译iOS虚拟键盘上存在的完成"按钮的最简单方法是什么?

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

例如,我的iPhone配置为使用法语.
但是,该按钮仍显示完成"按钮,而不是经典的法语改编单词:确定".

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".

推荐答案

我的cordova应用程序也遇到了同样的问题.我用写在Info.plist

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>

这篇关于翻译“完成";然后将“完成"翻译为“完成". iOS键盘上的其他语言按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆