mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:45:50 +00:00
add i18n message for error title.
This commit is contained in:
parent
e5d97d5ec5
commit
7c4aad3b92
5 changed files with 13 additions and 10 deletions
|
@ -12,6 +12,7 @@ findOwners=Find owners
|
||||||
veterinarians=Veterinarians
|
veterinarians=Veterinarians
|
||||||
error=Error
|
error=Error
|
||||||
new=New
|
new=New
|
||||||
|
errorTitle=trigger a RuntimeException to see how it is handled
|
||||||
|
|
||||||
somethingHappened=Something happened...
|
somethingHappened=Something happened...
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ findOwners=\u67e5\u627e\u4e3b\u4eba
|
||||||
veterinarians=\u5ba0\u7269\u533b\u751f
|
veterinarians=\u5ba0\u7269\u533b\u751f
|
||||||
error=\u9519\u8bef\u6d88\u606f
|
error=\u9519\u8bef\u6d88\u606f
|
||||||
new=\u65b0\u5efa
|
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...
|
somethingHappened=\u51fa\u4e86\u4e9b\u72b6\u51b5...
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li style="width: 120px;"><a href="<spring:url value="/" htmlEscape="true" />"><i class="icon-home"></i>
|
<li style="width: 120px;"><a href="<spring:url value="/" htmlEscape="true" />"><i class="icon-home"></i>
|
||||||
<fmt:message key="home"/></a></li>
|
<fmt:message key="home"/></a></li>
|
||||||
<li style="width: 150px;"><a href="<spring:url value="/owners/find.html" htmlEscape="true" />"><i
|
<li style="width: 150px;"><a href="<spring:url value='/owners/find.html' htmlEscape='true' />"><i
|
||||||
class="icon-search"></i> <fmt:message key="findOwners"/></a></li>
|
class="icon-search"></i> <fmt:message key="findOwners"/></a></li>
|
||||||
<li style="width: 160px;"><a href="<spring:url value="/vets.html" htmlEscape="true" />"><i
|
<li style="width: 160px;"><a href="<spring:url value='/vets.html' htmlEscape='true' />"><i
|
||||||
class="icon-th-list"></i> <fmt:message key="veterinarians"/> </a></li>
|
class="icon-th-list"></i> <fmt:message key="veterinarians"/> </a></li>
|
||||||
<li style="width: 110px;"><a href="<spring:url value="/oups.html" htmlEscape="true" />"
|
<li style="width: 110px;"><a href="<spring:url value='/oups.html' htmlEscape='true' />"
|
||||||
title="trigger a RuntimeException to see how it is handled"><i
|
title="<fmt:message key='errorTitle'/>"><i
|
||||||
class="icon-warning-sign"></i> <fmt:message key="error"/> </a></li>
|
class="icon-warning-sign"></i> <fmt:message key="error"/> </a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</spring:url>
|
</spring:url>
|
||||||
<a href="${fn:escapeXml(ownerUrl)}"><c:out value="${owner.firstName} ${owner.lastName}"/></a>
|
<a href="${fn:escapeXml(ownerUrl)}"><c:out value="${owner.firstName} ${owner.lastName}"/></a>
|
||||||
</datatables:column>
|
</datatables:column>
|
||||||
<datatables:column title="Name" display="pdf">
|
<datatables:column title="${Name}" display="pdf">
|
||||||
<c:out value="${owner.firstName} ${owner.lastName}"/>
|
<c:out value="${owner.firstName} ${owner.lastName}"/>
|
||||||
</datatables:column>
|
</datatables:column>
|
||||||
<datatables:column title="${Address}" property="address" cssStyle="width: 200px;"/>
|
<datatables:column title="${Address}" property="address" cssStyle="width: 200px;"/>
|
||||||
|
|
|
@ -34,7 +34,8 @@
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<spring:message code="petName" var="Name" />
|
<spring:message code="petName" var="Name" />
|
||||||
<spring:message code="description" var="description" />
|
<spring:message code="birthDate" var="BirthDate" />
|
||||||
|
<spring:message code="type" var="Type" />
|
||||||
|
|
||||||
<form:form modelAttribute="pet" method="${method}"
|
<form:form modelAttribute="pet" method="${method}"
|
||||||
class="form-horizontal">
|
class="form-horizontal">
|
||||||
|
@ -44,9 +45,9 @@
|
||||||
<c:out value="${pet.owner.firstName} ${pet.owner.lastName}"/>
|
<c:out value="${pet.owner.firstName} ${pet.owner.lastName}"/>
|
||||||
</div>
|
</div>
|
||||||
<petclinic:inputField label="${Name}" name="name"/>
|
<petclinic:inputField label="${Name}" name="name"/>
|
||||||
<petclinic:inputField label="Birth Date" name="birthDate"/>
|
<petclinic:inputField label="${BirthDate}" name="birthDate"/>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<petclinic:selectField name="type" label="Type " names="${types}" size="5"/>
|
<petclinic:selectField name="type" label="${Type} " names="${types}" size="5"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
|
|
Loading…
Reference in a new issue