Listing 9. setlocale function.
清单9 . setlocale函数。
The setlocale (LC_CTYPE, ) function must be called to set the locale according to the environment variables first.
首先必须调用setlocale (LC_CTYPE,“ ”)函数,依据环境变量设置语言环境。
The setlocale call determines the character set, error messages catalogs, monetary value formatting, numerical conventions, string collation, and alphabetic ordering.
可以调用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 使用的语言环境)。
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 使用的语言环境)。
应用推荐