Listing 9. setlocale function.
清单9 . setlocale函数。
While the bundle base name is fixed for the lifetime of the Msg object, you can switch the locale used by the Msg object by calling its setLocale() method (its default is the JVM's default locale).
“绑定包的名称”在 Msg 对象的生命周期内将一直存在,可以通过调用 Msg 对象的 setLocale() 来切换语言环境(默认语言环境是 JVM 使用的语言环境)。
应用推荐