diff --git a/src/main/resources/dandelion/datatables/datatables_zh_CN.properties b/src/main/resources/dandelion/datatables/datatables_zh_CN.properties
new file mode 100644
index 000000000..fc224eca9
--- /dev/null
+++ b/src/main/resources/dandelion/datatables/datatables_zh_CN.properties
@@ -0,0 +1,3 @@
+global.i18n.msg.processing=\u6b63\u5728\u5904\u7406\u4e2d...
+global.i18n.msg.search=\u641c\u7d22 :
+global.i18n.msg.info=\u81ea _START_ \u81f3 _END_ , \u5171 _TOTAL_ \u6761
\ No newline at end of file
diff --git a/src/main/resources/messages/messages.properties b/src/main/resources/messages/messages.properties
index 173417a10..87ee012b1 100644
--- a/src/main/resources/messages/messages.properties
+++ b/src/main/resources/messages/messages.properties
@@ -6,3 +6,51 @@ nonNumeric=must be all numeric
duplicateFormSubmission=Duplicate form submission is not allowed
typeMismatch.date=invalid date
typeMismatch.birthDate=invalid date
+
+home=Home
+findOwners=Find owners
+veterinarians=Veterinarians
+error=Error
+new=New
+errorTitle=trigger a RuntimeException to see how it is handled
+
+somethingHappened=Something happened...
+
+owner=Owner
+addOwner=Add Owner
+updateOwner=Update Owner
+editOwner=Edit Owner
+lastName=Last name
+firstName=First name
+findOwner=Find Owner
+ownerInformation=Owner Information
+
+name=Name
+address=Address
+city=City
+telephone=Telephone
+addNewPet=Add New Pet
+addPet=Add Pet
+updatePet=Update Pet
+editPet=Edit Pet
+addVisit=Add Visit
+petName=Name
+petsAndVisits=Pets and Visits
+birthDate=Birth Date
+type=Type
+visitDate=Visit Date
+description=Description
+
+owners=Owners
+pets=Pets
+pet=Pet
+
+visit=Visit
+addVisit=Add Visit
+previousVisits=Previous Visits
+date=Date
+
+viewAsXml=View as XML
+viewAsJson=View as JSon
+
+specialties=Specialties
\ No newline at end of file
diff --git a/src/main/resources/messages/messages_zh_CN.properties b/src/main/resources/messages/messages_zh_CN.properties
new file mode 100644
index 000000000..4f5cf632c
--- /dev/null
+++ b/src/main/resources/messages/messages_zh_CN.properties
@@ -0,0 +1,56 @@
+welcome=\u6b22\u8fce\u6765\u5230\u5ba0\u7269\u8bca\u6240
+required=\u5fc5\u586b\u9879
+notFound=\u672a\u627e\u5230
+duplicate=\u5df2\u7528
+nonNumeric=\u5fc5\u987b\u4e3a\u6570\u5b57
+duplicateFormSubmission=\u4e0d\u53ef\u91cd\u590d\u63d0\u4ea4
+typeMismatch.date=\u65e0\u6548\u65e5\u671f
+typeMismatch.birthDate=\u65e0\u6548\u65e5\u671f
+
+home=\u4e3b\u9875
+findOwners=\u67e5\u627e\u4e3b\u4eba
+veterinarians=\u5ba0\u7269\u533b\u751f
+error=\u9519\u8bef\u6d88\u606f
+new=\u65b0\u5efa
+errorTitle=\u89e6\u53d1\u4e00\u4e2a RuntimeException\u5f02\u5e38\uff0c\u89c2\u5bdf\u5176\u5904\u7406\u903b\u8f91
+
+somethingHappened=\u51fa\u4e86\u4e9b\u72b6\u51b5...
+
+owner=\u4e3b\u4eba
+addOwner=\u65b0\u589e\u4e3b\u4eba
+updateOwner=\u66f4\u65b0\u4e3b\u4eba
+editOwner=\u7f16\u8f91\u4e3b\u4eba
+lastName=\u59d3
+firstName=\u540d
+findOwner=\u5bfb\u627e\u4e3b\u4eba
+ownerInformation=\u4e3b\u4eba\u4fe1\u606f
+
+name=\u59d3\u540d
+address=\u5730\u5740
+city=\u57ce\u5e02
+telephone=\u7535\u8bdd
+addNewPet=\u65b0\u589e\u5ba0\u7269
+addPet=\u589e\u52a0\u5ba0\u7269
+updatePet=\u66f4\u65b0\u5ba0\u7269
+editPet=\u7f16\u8f91\u5ba0\u7269
+addVisit=\u65b0\u589e\u5c31\u8bca\u8bb0\u5f55
+petName=\u540d\u79f0
+petsAndVisits=\u5ba0\u7269\u548c\u5c31\u8bca\u8bb0\u5f55
+birthDate=\u751f\u65e5
+type=\u79cd\u7c7b
+visitDate=\u5c31\u8bca\u65e5\u671f
+description=\u63cf\u8ff0
+
+owners=\u4e3b\u4eba
+pets=\u5ba0\u7269
+pet=\u5ba0\u7269
+
+visit=\u5c31\u8bca\u8bb0\u5f55
+addVisit=\u65b0\u589e\u5c31\u8bca\u8bb0\u5f55
+previousVisits=\u4e4b\u524d\u7684\u5c31\u8bca\u8bb0\u5f55
+date=\u65e5\u671f
+
+viewAsXml=XML\u89c6\u56fe
+viewAsJson=JSON\u89c6\u56fe
+
+specialties=\u4e13\u957f
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/exception.jsp b/src/main/webapp/WEB-INF/jsp/exception.jsp
index 876fb04a3..08e19710c 100644
--- a/src/main/webapp/WEB-INF/jsp/exception.jsp
+++ b/src/main/webapp/WEB-INF/jsp/exception.jsp
@@ -2,6 +2,7 @@
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
@@ -12,7 +13,7 @@
-
Something happened...
+
${exception.message}
diff --git a/src/main/webapp/WEB-INF/jsp/fragments/bodyHeader.jsp b/src/main/webapp/WEB-INF/jsp/fragments/bodyHeader.jsp
index 207a5b727..fcce9319f 100644
--- a/src/main/webapp/WEB-INF/jsp/fragments/bodyHeader.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fragments/bodyHeader.jsp
@@ -8,14 +8,14 @@
- ">
- Home
- - "> Find owners
- - "> Veterinarians
- - "
- title="trigger a RuntimeException to see how it is handled"> Error
+
+ -
+ -
+ -
diff --git a/src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp b/src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp
index 0479f0bde..c276f9782 100644
--- a/src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp
+++ b/src/main/webapp/WEB-INF/jsp/owners/createOrUpdateOwnerForm.jsp
@@ -21,22 +21,29 @@
- New Owner
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
-
+
diff --git a/src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp b/src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp
index 91d2ebabc..c2cd975f9 100644
--- a/src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp
+++ b/src/main/webapp/WEB-INF/jsp/owners/findOwners.jsp
@@ -13,25 +13,25 @@
-
Find Owners
+
-
Add Owner
+
diff --git a/src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp b/src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp
index 4ace4ba23..638149213 100644
--- a/src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp
+++ b/src/main/webapp/WEB-INF/jsp/owners/ownerDetails.jsp
@@ -14,23 +14,23 @@
-
Owner Information
+
-
Pets and Visits
+
- - Name
+
- - Birth Date
+
- - Type
+
|
@@ -66,8 +66,8 @@
diff --git a/src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp b/src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp
index 5e8eaaaaa..809d8e90a 100644
--- a/src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/owners/ownersList.jsp
@@ -13,23 +13,29 @@
-
Owners
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
+
+
+
+
diff --git a/src/main/webapp/WEB-INF/jsp/pets/createOrUpdatePetForm.jsp b/src/main/webapp/WEB-INF/jsp/pets/createOrUpdatePetForm.jsp
index c41f02ddf..da7a3eb89 100644
--- a/src/main/webapp/WEB-INF/jsp/pets/createOrUpdatePetForm.jsp
+++ b/src/main/webapp/WEB-INF/jsp/pets/createOrUpdatePetForm.jsp
@@ -1,6 +1,7 @@
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %>
@@ -28,29 +29,33 @@
- New
- Pet
+
+
+
+
+
+
-
+
-
-
+
+
-
+
-
+
diff --git a/src/main/webapp/WEB-INF/jsp/pets/createOrUpdateVisitForm.jsp b/src/main/webapp/WEB-INF/jsp/pets/createOrUpdateVisitForm.jsp
index 501a0d48e..112664418 100644
--- a/src/main/webapp/WEB-INF/jsp/pets/createOrUpdateVisitForm.jsp
+++ b/src/main/webapp/WEB-INF/jsp/pets/createOrUpdateVisitForm.jsp
@@ -21,16 +21,16 @@
-
New Visit
+
-
Pet
+
- Name |
- Birth Date |
- Type |
- Owner |
+ |
+ |
+ |
+ |
@@ -40,24 +40,27 @@
|
+
+
+
-
-
+
+
-
+
-
Previous Visits
+
- Date |
- Description |
+ |
+ |
diff --git a/src/main/webapp/WEB-INF/jsp/vets/vetList.jsp b/src/main/webapp/WEB-INF/jsp/vets/vetList.jsp
index 040679c28..2eb3096e8 100644
--- a/src/main/webapp/WEB-INF/jsp/vets/vetList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/vets/vetList.jsp
@@ -14,13 +14,16 @@
-
Veterinarians
+
+
+
+
-
+
-
+
@@ -31,10 +34,10 @@
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index 360e3698a..193d82bd8 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -69,6 +69,25 @@ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
/dandelion-assets/*
+
+
+ encodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ UTF-8
+
+
+ forceEncoding
+ true
+
+
+
+
+ encodingFilter
+ /*
+
+
dandelionFilter
@@ -92,25 +111,6 @@ see here: http://static.springsource.org/spring/docs/current/spring-framework-re
petclinic
-
-
- encodingFilter
- org.springframework.web.filter.CharacterEncodingFilter
-
- encoding
- UTF-8
-
-
- forceEncoding
- true
-
-
-
-
- encodingFilter
- /*
-
-
datatables