请教JAVA国际化
国际化资源文件的执行顺序是:
baseName_zh_cn.properties
baseName_zh.properties
baseName.properties
我现在Locale cl=new Locale("en","US");
在资源文件中并没有这个文件
应该执行:baseName.properties
但为何还是执行baseName_zh_cn.properties
只是格式变了;
打印出来:
你好,jacky!今天是2/25/08 4:02 PM
如果没有应该执行
baseName.properties
如为cl=new Locale("");
就能正常显示
hello,jacky! today is 2/25/08 4:08 PM.