按文档的说法:
ActionClass.properties
Interface.properties (every interface and sub-interface)
BaseClass.properties (all the way to Object.properties)
ModelDriven's model (if implements ModelDriven), for the model object repeat from 1
package.properties (of the directory where class is located and every parent directory all the way to the root directory)
search up the i18n message key hierarchy itself
global resource properties
也就是说(都省略了.properties以及语言的后缀),先是Action类
然后Action接口
然后是父类
然后是ModelDriven的Model类,当然得实现了Model;对于Model来说,从头开始重复搜索;
----------华丽滴分割线------------
然后是package.properties文件,并且顺着搜索到所有父package
搜索继承体系里面所有的i18n的key
最后是global的资源文件。
该怎么分割,估计聪明如你也该想明白了吧:)类一级的,功能一级的,系统一级的。估计三级就够了。btw为什么是三级,囧。
分享到:
相关推荐
整理struts2国际化例子源码整理struts2国际化例子源码整理struts2国际化例子源码
Struts1 和 Struts 2 国际化全局资源,有文档说明、有图形加以说明,还有源代码。
Struts2国际化的实现原理;简单的struts2国际化实现过程的讲解
struts2国际化MyEclipse开发struts2国际化MyEclipse开发童叟无欺
struts2国际化 标签 页面 处理类 实例,特殊注意点说明
struts2国际化测试小demo
一个Web应用程序在运行时能够根据客户端请求所来自的国家和语言显示不同的用户界面。这样 ,当需要在应用程序中添加对一种新的语言的支持时,无需修改应用程序的代码。
http://blog.csdn.net/liuhongjavaen/article/details/7655385 具体操作事项请查阅博客 struts2国际化源码 eclipse国际化插件
struts国际化的描述,其中包括在配置文件中配置实现,以及在后台中或者是前台中处理实现国际化的过程。
struts1国际化
励智教育,struts2国际化处理教程案例及幻灯片,网址:http://www.lizhi.cc
相关的国际化的知识点,写了一个小demo
导入相关的jar包,直接发布便可以运行 struts2国际化+简单的标签+用户注册和登录(不实用数据库)
struts2国际化,根据浏览器设置来显示不同语言,。
Struts2国际化
struts国际化struts国际化struts国际化
struts1 国际化 源代码 struts1 国际化 工程
文件的国际化字符串中使用OGNL,格式为${表达式},例如: validation.required=${getText(fileName)} is required 2. 使用java.text.MessageFormat中的字符串格式,格式为{ 参数序号(从0开始), 格式类形(number |...
自己做的一个简单的国际化例子,Struts2框架,myEclipse.
struts2 语言国际化配置和使用、页面按钮实现改变显示语言