struts.xml<constant name="struts.custom.i18n.resources" value="message " />src下:
message_en_US.properties wintys.i18n.title=hello
message_zh_CN.properties wintys.i18n.title=\u4F60\u597D\uFF0C\u4E16\u754C\uFF01界面
<s:text name="wintys.i18n.title" />但IE更改语言后一直显示中文,换成英语不行!现在用的struts2,谁有国际化的详细demo给个啊,用户可以自己选择语言!
message_en_US.properties wintys.i18n.title=hello
message_zh_CN.properties wintys.i18n.title=\u4F60\u597D\uFF0C\u4E16\u754C\uFF01界面
<s:text name="wintys.i18n.title" />但IE更改语言后一直显示中文,换成英语不行!现在用的struts2,谁有国际化的详细demo给个啊,用户可以自己选择语言!
关于你的只会显示中文的问题,你要确认你的浏览器的语言,最笨的方法就是输入www.google.com google会根据你的IE设置自动转换到对应的语言的。
如果你希望具有用户自己选择语言的功能,而不是从浏览器中读出来,那么只需根据用户的选择跟新用户的local就可以了。