如何更改phonegap的相机插件中的文本 [英] How to change the text in the camera plugin of phonegap

查看:65
本文介绍了如何更改phonegap的相机插件中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我正在尝试全球化移动应用程序。目前应用程序支持英语和葡萄牙语。



问题:

当我将区域设置更改为葡萄牙语时,phonegap插件仍显示英文文本。



EQ。当我使用相机点击照片时,它会显示类似

Hi Friends,
I'm trying to Globalize the mobile application. Currently application supports English and Portuguese language.

Problem:
When I change the regional settings to Portuguese, the phonegap plugin still displays English text.

EQ. When I click photo using camera, it display text like

1. Retake 
2. Use Photo



有没有办法根据全球化来控制这个文本?



提前谢谢。


Is there any way to control this text based on globalization?

Thanks in advance.

推荐答案

我得到了解决方案。



这不是科尔多瓦或phonegap相关更改。



因为它是iOS项目,所以我需要在Xcode的'.plist'文件中进行更改。

I got solution for it.

This is not cordova or phonegap releated changes.

Since it is iOS project, so I needed to make changes in the '.plist' file of Xcode.
<key>CFBundleLocalizations</key>
<array>
  <string>en</string>
  <string>pt</string>
</array>





现在上面的更改使得应用程序支持cordova插件中的英语和葡萄牙语。



Now above changes makes application support both English and Portuguese language in cordova plugin.


这篇关于如何更改phonegap的相机插件中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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