Skip to content

Commit 7b3222d

Browse files
committed
internalization added
1 parent e0ed385 commit 7b3222d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/main/resources/messages.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Set names of properties
2-
recipe.description=Description
2+
recipe.description=Description (DEFAULT)
33

44
#Validation Messages
55
#Order of precedence
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#recipe.description=Description (DE)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recipe.description=Description (EN)

src/main/resources/templates/recipe/recipe-form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1 class="panel-title">Edit Recipe Information</h1>
2222
<div class="row">
2323
<div class="col-md-6 form-group" th:class="${#fields.hasErrors('description')}
2424
? 'col-md-3 form-group has-error' : 'col-md-3 form-group'">
25-
<label>Recipe Description:</label>
25+
<label th:text="#{recipe.description}">Recipe Description:</label>
2626
<input type="text" class="form-control" th:field="${recipe.description}"
2727
th:errorclass="has-error"/>
2828
<span class="help-block" th:if="${#fields.hasErrors('description')}">

0 commit comments

Comments
 (0)