如何创建一个多语种的Android应用程序? [英] How can I create a multilingual android application?
问题描述
我想创建一个多语种的Android应用程序。
I would like to create a multilingual android application.
有没有一种方法来检测一下语言用户prefers?
Is there a way to detect what language the user prefers?
有没有推荐的方式来管理多种语言在Android或者我应该推倒重来?
Is there a recommended way to manage multiple languages on Android or should I reinvent the wheel?
推荐答案
是的,有推荐的方式来管理多语言
Yes, there is a recommended way to manage multiple languages
多语言支持是很容易做的机器人。创建一个新的值目录与语言code后缀的语言。德国:值德或法语:值-FR你string.xml比复制到这一点,将每个条目。这就是你所需要的。
Multilanguage support is easy done for android. Create a new values directory for the language with the suffix of the language code. For german: values-de or french: values-fr than copy your string.xml into that and translate each entry. Thats all you need.
为您提供遵循建议,检测其语言的用户prefers是自动的。
Providing you follow the recommendations, detecting which language the user prefers is automatic.
有这样一个阅读:
<一个href="http://developer.android.com/guide/topics/resources/localization.html">http://developer.android.com/guide/topics/resources/localization.html
这篇关于如何创建一个多语种的Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!