summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/messages/message_en.properties21
-rw-r--r--src/main/resources/messages/message_ru.properties21
-rw-r--r--src/main/resources/messages/message_zh_CN.properties21
-rw-r--r--src/main/resources/spring-mvc.xml16
4 files changed, 76 insertions, 3 deletions
diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties
new file mode 100644
index 000000000..4d29aa9aa
--- /dev/null
+++ b/src/main/resources/messages/message_en.properties
@@ -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 \ No newline at end of file
diff --git a/src/main/resources/messages/message_ru.properties b/src/main/resources/messages/message_ru.properties
new file mode 100644
index 000000000..004f547c6
--- /dev/null
+++ b/src/main/resources/messages/message_ru.properties
@@ -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
diff --git a/src/main/resources/messages/message_zh_CN.properties b/src/main/resources/messages/message_zh_CN.properties
new file mode 100644
index 000000000..0beefcec7
--- /dev/null
+++ b/src/main/resources/messages/message_zh_CN.properties
@@ -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 \ No newline at end of file
diff --git a/src/main/resources/spring-mvc.xml b/src/main/resources/spring-mvc.xml
index 2e961f65c..7b6391e49 100644
--- a/src/main/resources/spring-mvc.xml
+++ b/src/main/resources/spring-mvc.xml
@@ -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>