表现层组件支持国际化资源(I18N,Internationalization)调用,实现多语言支持。
hr_cn_ZH.properties资源文件片断 |
employee_id=员工编码 |
hr_en_US.properties文件片断 |
employee_id=Employee ID |
表格头Label以EL表达式"${Resource.hr.employee_id}" 设定国际化资源,如果需要显示为简体中文,系统根据hr_cn_ZH.properties资源文件,自动将employee_id译为"员工编码";如果需要显示为英文,系统根据hr_cn_US.properties资源文件,自动将employee_id译为"Name"。