File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed
resources/ru/mystamps/i18n
webapp/WEB-INF/views/series Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public final class Url {
90
90
public static final String ADD_SERIES_WITH_COUNTRY_PAGE = "/series/add/country/{slug}" ;
91
91
92
92
// MUST be updated when any of our resources were modified
93
- public static final String RESOURCES_VERSION = "v0.3.9 " ;
93
+ public static final String RESOURCES_VERSION = "v0.3.10 " ;
94
94
95
95
// CheckStyle: ignore LineLength for next 7 lines
96
96
public static final String MAIN_CSS = "/static/" + RESOURCES_VERSION + "/styles/main.min.css" ;
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ function initPage(suggestCountryUrl) {
39
39
suggestCountryLink . addClass ( 'hidden' ) ;
40
40
chooseCountryBySlug ( slug ) ;
41
41
} ) ;
42
+
43
+ var countryName = getCountryNameBySlug ( slug ) ;
44
+ var newText = suggestCountryLink . text ( ) . replace ( '%name%' , countryName ) ;
45
+ suggestCountryLink . text ( newText ) ;
46
+
42
47
suggestCountryLink . removeClass ( 'hidden' ) ;
43
48
} ) ;
44
49
}
@@ -49,3 +54,9 @@ function chooseCountryBySlug(slug) {
49
54
var selectize = countrySelectBox [ 0 ] . selectize ;
50
55
selectize . setValue ( slug ) ;
51
56
}
57
+
58
+ function getCountryNameBySlug ( slug ) {
59
+ var countrySelectBox = $ ( '#country' ) . selectize ( ) ;
60
+ var selectize = countrySelectBox [ 0 ] . selectize ;
61
+ return selectize . options [ slug ] . text ;
62
+ }
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ t_image = Image
129
129
t_add_more_images_hint = Later you will be able to add additional images
130
130
t_create_category_hint = You can also <a tabindex="-1" href="{0}">add a new category</a>
131
131
t_create_country_hint = You can also <a tabindex="-1" href="{0}">add a new country</a>
132
- t_guess_country = Guess a country
132
+ t_pick_percent_name = Pick "%name%"
133
133
134
134
# series/info.html
135
135
t_series_info = Info about series
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ t_image = Изображение
128
128
t_add_more_images_hint = Вы сможете добавить дополнительные изображения позже
129
129
t_create_category_hint = Вы также можете <a tabindex="-1" href="{0}">добавить новую категорию</a>
130
130
t_create_country_hint = Вы также можете <a tabindex="-1" href="{0}">добавить новую страну</a>
131
- t_guess_country = Угадать страну
131
+ t_pick_percent_name = Выбрать "%name%"
132
132
133
133
# series/info.html
134
134
t_series_info = Информация о серии
Original file line number Diff line number Diff line change @@ -172,12 +172,12 @@ <h3 th:text="${#strings.capitalize(add_series)}">
172
172
173
173
< small togglz:active ="SHOW_SUGGESTION_LINK ">
174
174
< a tabindex ="-1 "
175
- th:text ="#{t_guess_country } "
175
+ th:text ="#{t_pick_percent_name } "
176
176
href ="javascript:$('#js-suggest-country-link').hide(); chooseCountryBySlug('russia'); void(0) "
177
177
th:href ="'javascript:void(0)' "
178
178
id ="js-suggest-country-link "
179
179
class ="link-vcenter "
180
- th:classappend ="hidden "> Guess a country </ a >
180
+ th:classappend ="hidden "> Pick "Russia" </ a >
181
181
</ small >
182
182
</ div >
183
183
You can’t perform that action at this time.
0 commit comments