(机器人)的控制,使其用户语言

(机器人)的控制,使其用户语言

问题描述:

我有一个多语言的应用程序。 我想给用户控制要使用的语言的能力。 这意味着,即使他有英语语言环境,他可以使用不同的语言,如果他想。 我怎样才能改变地区语言? (每个应用程序) 谢谢....

I have a multi language app. I want to give the user the ability to control which language to use. that mean that even if he has the English Locale he could use a different language if he wants. How can I change the Locale language? (per app) Thanks....

Android提供了没有办法改变你的应用程序的语言环境;该事是在全系统的水平。

Android provides no way to change the locale of your application; it is done at a system-wide level.

这也是我想象的更有意义不必设置多个独立应用程序的语言。

Which I would imagine makes more sense than having to set the language in multiple individual apps.

修改,2010-03-09:
很显然我错了有关每个应用程序,它不是可能的。

Edit, 2010-03-09:
Apparently I'm wrong about it not being possible per-app.

这里有一个问题,表明你可以改变的语言环境—显然每个活动。在这种情况下,你需要照顾屏幕旋转和其他配置更改的手动,否则的活动将重新启动并恢复到原来的配置当有新的变化。
http://stackoverflow.com/questions/2264874/android-changing-locale-within-the-app-itself
http://stackoverflow.com/questions/2324418/android-forced-locale-resetted-on-orientation-changes

Here's a question showing that you can alter the locale — apparently per-Activity. In this case you need to take care of screen rotation and other configuration changes manually as otherwise the Activity will be restarted and revert to its original Configuration when something changes.
http://stackoverflow.com/questions/2264874/android-changing-locale-within-the-app-itself
http://stackoverflow.com/questions/2324418/android-forced-locale-resetted-on-orientation-changes