增加系统国际化配置

This commit is contained in:
dell
2018-01-16 09:57:12 +08:00
parent 0597c974e8
commit f45edaddb5
10 changed files with 196 additions and 22 deletions

View File

@@ -0,0 +1,21 @@
#menu and button info
funMenu=function menu
sysManage=system management
sysAuthor=system authorization
menuManage=menu management
roleManage=role management
dictManage=dictionary management
basicManage=basic management
areaManage=area management
officeManage=office management
userManage=user management
notify=my notify
help=help
home=home
panel=my panel
userInfo=personal information
updatePwd=update password
show=show
edit=edit
hi=hi
exit=exit

View File

@@ -0,0 +1,21 @@
#menu and button info
funMenu=function menu
sysManage=system management
sysAuthor=system authorization
menuManage=menu management
roleManage=role management
dictManage=dictionary management
basicManage=basic management
areaManage=area management
officeManage=office management
userManage=user management
notify=my notify
help=help
home=home
panel=my panel
userInfo=personal information
updatePwd=update password
show=show
edit=edit
hi=hi
exit=exit

View File

@@ -0,0 +1,21 @@
#menu and button info
funMenu=\u529F\u80FD\u83DC\u5355
sysManage=\u7CFB\u7EDF\u7BA1\u7406
sysAuthor=\u7CFB\u7EDF\u6388\u6743
menuManage=\u83DC\u5355\u7BA1\u7406
roleManage=\u89D2\u8272\u7BA1\u7406
dictManage=\u5B57\u5178\u7BA1\u7406
basicManage=\u57FA\u672C\u7BA1\u7406
areaManage=\u533A\u57DF\u7BA1\u7406
officeManage=\u673A\u6784\u7BA1\u7406
userManage=\u7528\u6237\u7BA1\u7406
notify=\u6211\u7684\u540C\u5FD7
help=\u5173\u4E8E\u5E2E\u52A9
home=\u5B98\u65B9\u9996\u9875
panel=\u6211\u7684\u9762\u677F
userInfo=\u4E2A\u4EBA\u4FE1\u606F
updatePwd=\u4FEE\u6539\u5BC6\u7801
show=\u67E5\u770B
edit=\u4FEE\u6539
hi=\u4F60\u597D
exit=\u9000\u51FA

View File

@@ -262,8 +262,18 @@
<!--<property name="maxInMemorySize" value="1000"></property> -->
</bean>
<!-- 配置国际化资源文件路径 -->
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basename">
<!-- 定义消息资源文件的相对路径 -->
<value>messages/message</value>
</property>
</bean>
<!-- 基于Cookie的本地化解析器 -->
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
<property name="cookieMaxAge" value="604800"/>
<property name="defaultLocale" value="zh_CN"/>
<property name="cookieName" value="Language"></property>
</bean>
</beans>