所以,我希望得到一个字符串的几个区域设置的值,而不管该设备/应用程序的当前区域设置的。我应该怎么办呢?
So I want to get the value of a String in several locales regardless of the current locale setting of the device/app. How should I do that?
基本上,我需要的是一个函数的getString(INT ID,字符串区域)
,而不是的getString(INT ID)
Basically what I need is a function getString(int id, String locale)
rather than getString(int id)
我怎么能这样做呢?
感谢
您在找什么叫ResourceBundle类。这里的链接:
What you're looking for is called the ResourceBundle class. Here's the link:
谷歌文档的资源包