File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
resources/ru/mystamps/i18n
webapp/WEB-INF/views/country
test/java/ru/mystamps/web/tests/cases Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ t_category_list = category list
151
151
# country/add.html
152
152
153
153
# country/info.html
154
- t_country_info = Country info
154
+ t_stamps_of = stamps of {0}
155
155
t_country_just_added = Country has been added.<br />Now you could <a href="{0}" class="alert-link">proceed with creating series</a>.
156
156
157
157
# country/list.html
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ t_category_list = список категорий
151
151
# country/add.html
152
152
153
153
# country/info.html
154
- t_country_info = Информация о стране
154
+ t_stamps_of = марки страны {0}
155
155
t_country_just_added = Страна добавлена. Теперь вы можете <a href="{0}" class="alert-link">создать серию</a>.
156
156
157
157
# country/list.html
Original file line number Diff line number Diff line change 7
7
< meta charset ="utf-8 " />
8
8
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
9
9
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
10
- < title th:text ="|#{t_my_stamps}: #{t_country_info} | "> My stamps: Country info </ title >
10
+ < title th:text ="|#{t_my_stamps}: #{t_stamps_of(${countryName})} | "> My stamps: stamps of Italy </ title >
11
11
< link rel ="shortcut icon " type ="image/x-icon " href ="../../../favicon.ico " th:href ="${FAVICON_ICO} " />
12
12
< link rel ="stylesheet " href ="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css " th:href ="${BOOTSTRAP_CSS} " />
13
13
< link rel ="stylesheet " href ="https://cdn.rawgit.com/usrz/bootstrap-languages/3ac2a3d2b27ac43a471cd99e79d378a03b2c6b5f/languages.min.css " th:href ="${BOOTSTRAP_LANGUAGE} " />
88
88
</ div >
89
89
</ div >
90
90
< div class ="row ">
91
- < div id ="content " class ="col-sm-12 ">
92
- < h3 th:text ="${countryName } ">
93
- Italy
91
+ < div id ="content " class ="col-sm-12 " th:with =" header=#{t_stamps_of(${countryName})} " >
92
+ < h3 th:text ="${#strings.capitalize(header) } ">
93
+ Stamps of Italy
94
94
</ h3 >
95
95
96
96
<!--/*/
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ public void shouldBeRedirectedToPageWithInfoAboutCountryAfterCreation() {
231
231
.replace ("{slug}" , TEST_COUNTRY_NAME_EN .toLowerCase ());
232
232
233
233
assertThat (page .getCurrentUrl ()).matches (expectedUrl );
234
- assertThat (page .getHeader ()).isEqualTo (TEST_COUNTRY_NAME_EN );
234
+ assertThat (page .getHeader ()).isEqualTo ("Stamps of " + TEST_COUNTRY_NAME_EN );
235
235
}
236
236
237
237
@ Test (
You can’t perform that action at this time.
0 commit comments