翻译我的应用程序 [英] translate my app

查看:194
本文介绍了翻译我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的是提供包含几种语言微调,在选择语言的用户,应用程序将翻译成该语言。

What I want to do is provide the user with a spinner which contains several languages, when a language is selected, the app will translate to that language.

我有不同的字符串的文件,但我不知道如何实现这一点。这可能吗?我该怎么办呢?

I have different string files but I have no idea how to implement this. Is this possible? How can I do it?

推荐答案

在res文件夹,尊重这一点:

In the res folder, respect this :

res/
       values/
           strings.xml
       values-es / (here for spanish values)
           strings.xml
       values-fr /
           strings.xml (here for french values)

Android的根据在运行时设备的区域设置加载相应的资源。

Android loads the appropriate resources according to the locale settings of the device at run time.

有关更多的信息,请参见这个

For more informations, see this.

这篇关于翻译我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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