Phonegap / Cordova国际化支持 [英] Phonegap/Cordova internationalization support
问题描述
我正在使用Phonegap开发移动应用程序,我需要国际化 - 显示不同语言的html页面。我现在明白这不是一个PhoneGap的问题 - 我必须国际化的网络应用程序。
- 任何框架都支持国际化移动)?
- 可以使用模板方法,例如使用属性文件和模板并在构建过程中生成HTML?
- 如果我使用Bourbon的方法(参见答案),如何切换每个选项的语言设置?
敬礼,Christian
--- / strong> -
Phonegap从2.2.0起就有一个很好的全球化插件。它涵盖了大量的i18n功能。检查文档 http://docs.phonegap.com/en/edge/cordova_globalization_globalization.md.html #Globalization
Phonegap只是一个框架,可以在原生应用程式中显示网页,使用一些插件来连接设备的硬件传感器。国际化的支持将取决于您的html / js设计。
例如,您可以使用:
/html/en/index.html
/html/fr/index.html
...
根据用户的语言调用好的页面。
希望这会帮助你: p>
I am developing a mobile application with Phonegap and I need internationalization - display a html page in different languages. I do understand now that this is not a Phonegap issue - I have to internationalize the web application.
- Does any framework support internationalization (e.g. jQuery Mobile)?
- Is it possible to use a template approach, e.g. use property files and template and generate the HTML during the build process?`
- If I use the approach from Bourbon (see in the answers), how can I switch the language per option setting?
Kind regards, Christian
--- Edit --
Phonegap has a nice Globalization plugin since 2.2.0. It covers a lot of the i18n functionality. Check the docs http://docs.phonegap.com/en/edge/cordova_globalization_globalization.md.html#Globalization
Phonegap is just a framework to be able to show web pages in an native-app, and using some plugin to connect with device's hardware sensors. The support of internationalization will depend on your html/js design.
For exemple you can use :
/html/en/index.html
/html/fr/index.html
...
And call the good page depending on the user's language.
Hope this will help you :-)
这篇关于Phonegap / Cordova国际化支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!