java加载国际化
方式一: 通过util包中的ResourceBundle加载: 首先国际化资源文件放在了classpath下的i18n目录下: 基本命名格式: 基名_语言_地区.properties 常见的资源文件命名格式: i18n_en.properties:所有英文语言的资源 i18n_en_US.properties:美国地区,英文语言的资源 i18n_zh.properties:所有中文语言的资源 i18n_zh_CN.properties:中国大陆的,中文语言的资源 i18n_zh_HK.properties:中国香港,中文语言的资源 基名.properties:默认资源文件,如果请求相应的资源文件不存在,将使用此资源文件 mymessage_en_US.properties: com.website.operation=\u67e5\u8be2\u64cd\u4f5c\u65e5\u5fd7 com.website.write=\u5199\u65e5\u5fd7 com.website.writeLog=\u5199 {0} \u65e5\u5fd7 mymessage_en_US.properties: com.website.operation=queryOperationLog com.website.write=recordLog com.website.writeLog