hanhua_zh_zh_CN.properties文件里的东西要是unicode的。
你先native2ascii c:\hanhua_zh_zh_CN.properties d:\hanhua_zh_zh_CN.properties
这个d:\里的文件就这样了
title=\u4f60\u597d然后把D:\的文件放到你的resources目录下
你先native2ascii c:\hanhua_zh_zh_CN.properties d:\hanhua_zh_zh_CN.properties
这个d:\里的文件就这样了
title=\u4f60\u597d然后把D:\的文件放到你的resources目录下
rsrc = "resources" 就可以了,不需要"_zh"。把汉化文件存为resources_zh.properties, 英文的resources_en.properties, ...... 加".hanhua"我感觉不好,因为如果你需要做english, french, jp, kr......就不能用同一resourcePath,
如果你有包的话,rsrc="com.yourpackage.resources"
String resourcePath="resources.hanhua";
就可以了。这样哪个prop文件名就是
hanhua_zh_CN.properties放在resources目录里。你那样就多了个zh
hanhua_zh_zh_CN.properties