Android:如何使我的应用程序多语言化?
Possible Duplicate:
How can I create a multilingual android application?
I am creating application and i am in the testing phase, but i want to make my application multilingual.
How can i make it multilingual ?
What is the best way to make it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要做的就是在
res
文件夹中创建新文件夹。示例:如果您需要添加对西班牙语和意大利语的支持,您需要这样做:
res 文件夹
1.1 值
1.2 value-es // 西班牙语
1.3 Values-it // 意大利语
之后,您需要创建
string.xml
文件在values-es
和values-it
中。在所有文件中,您只需要创建要使用的所有字符串,如下所示:然后您可以将这些字符串用作:
这应该可以工作。
The thing that you need to do is to create new folders in your
res
folder.Example : If you need to add support to spanish and italian you need to do it like this :
res folder
1.1 values
1.2 values-es // spanish
1.3 values-it // italian
And after that you need to create
string.xml
files invalues-es
andvalues-it
. And in all files you just need to create all string which you want to use like this :And after that you can use these string as :
And this should work.
查看有关本地化应用程序的教程:http://developer.android.com /resources/tutorials/localization/index.html。
也许有帮助。
Take a look at this tutorial about localizing applications: http://developer.android.com/resources/tutorials/localization/index.html.
Maybe it helps.
有许多示例可以帮助您在 Android 中创建多语言应用程序。
看看这些文章:
http://developer.android.com/resources/ tutorials/localization/index.html
http://www.icanlocalize.com/site/tutorials/android-application-localization-tutorial/
这将帮助您在 android 中创建多语言应用程序。
Numerous examples are available that can help you create multilingual app in android.
Have a look on these articles :
http://developer.android.com/resources/tutorials/localization/index.html
http://www.icanlocalize.com/site/tutorials/android-application-localization-tutorial/
this will help you to create multilingual app in android.