摘要
web系统的国际化主要体现在界面多语言和数据库数据多语言两方面。目前大多采用静态方式或JS替换语言的方式实现界面多语言,但两者均存在不足之处。数据库数据多语言的实现目前多采用增加数据库或表的方式,造成系统程序逻辑的繁琐与冗余。本文提出的方案同时采用struts2国际化和hibernate多语言机制,轻量级配置,不影响数据库设计逻辑,有效实现了界面和数据库存储数据的动态多语言。
International web system is mainly reflected in the multi-language interface and database data in multiple languages in two ways.Currently,most of the static modes or manners of implementation of the language JS have re-placed multi-language interface,but the lack of presence at both.Implement database data in multiple languages cur-rently used to increase the database or table mode,causing the system program logic tedious and redundant.The pro-posed program while using struts2 international and multi-lingual mechanism hibernate,lightweight configuration,does not affect the database design logic,the effective realization of dynamic multi-language interface and database for storing data.
出处
《软件》
2016年第2期166-169,共4页
Software