Skip to content

Commit 41db2ea

Browse files
committed
refactor(/series/{id}): move HTML tags out of the translations.
Should be in 4117ecc commit. Prerequisite for #1056
1 parent 6dcb3f4 commit 41db2ea

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

src/main/resources/ru/mystamps/i18n/Messages.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ t_add_info_who_selling_series = Add info about selling/buying this series
152152
t_dd_mm_yyyy = dd.mm.yyyy
153153
t_today = Today
154154
t_seller = Seller
155-
t_add_seller_hint = <a tabindex="-1" href="{0}">Add a new seller</a>
155+
t_add_new_seller = Add a new seller
156156
t_price = Price
157157
t_alternative_price = Alternative price
158158
t_buyer = Buyer
159-
t_add_buyer_hint = <a tabindex="-1" href="{0}">Add a new buyer</a>
159+
t_add_new_buyer = Add a new buyer
160160
t_add_info = Add info
161161
t_import_info_who_selling_series = Import info about selling this series
162162
t_import_info = Import info

src/main/resources/ru/mystamps/i18n/Messages_ru.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ t_add_info_who_selling_series = Добавить покупки и продаж
151151
t_dd_mm_yyyy = дд.мм.гггг
152152
t_today = Сегодня
153153
t_seller = Продавец
154-
t_add_seller_hint = <a tabindex="-1" href="{0}">Добавить нового продавца</a>
154+
t_add_new_seller = Добавить нового продавца
155155
t_price = Цена
156156
t_alternative_price = Альтернативная цена
157157
t_buyer = Покупатель
158-
t_add_buyer_hint = <a tabindex="-1" href="{0}">Добавить нового покупателя</a>
158+
t_add_new_buyer = Добавить нового покупателя
159159
t_add_info = Добавить
160160
t_import_info_who_selling_series = Импортировать информацию о продаже этой серии
161161
t_import_info = Импортировать

src/main/webapp/WEB-INF/views/series/info.html

+14-4
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,13 @@ <h5 th:text="#{t_add_info_who_selling_series}">Add info about selling/buying thi
577577
<!--*/-->
578578
</select>
579579
<small sec:authorize="hasAuthority('ADD_PARTICIPANT')">
580-
<span class="hint-block" th:utext="#{t_add_seller_hint(@{${ADD_PARTICIPANT_PAGE}(seller=true)})}">
581-
You can also <a tabindex="-1" href="../participant/add.html?seller=true">add a new seller</a>
580+
<span class="hint-block">
581+
<a tabindex="-1"
582+
href="../participant/add.html?seller=true"
583+
th:href="@{${ADD_PARTICIPANT_PAGE}(seller=true)}"
584+
th:text="#{t_add_new_seller}">
585+
Add a new seller
586+
</a>
582587
</span>
583588
</small>
584589
<!--/*/
@@ -687,8 +692,13 @@ <h5 th:text="#{t_add_info_who_selling_series}">Add info about selling/buying thi
687692
<!--*/-->
688693
</select>
689694
<small sec:authorize="hasAuthority('ADD_PARTICIPANT')">
690-
<span class="hint-block" th:utext="#{t_add_buyer_hint(@{${ADD_PARTICIPANT_PAGE}(buyer=true)})}">
691-
You can also <a tabindex="-1" href="../participant/add.html?buyer=true">add a new buyer</a>
695+
<span class="hint-block">
696+
<a tabindex="-1"
697+
href="../participant/add.html?buyer=true"
698+
th:href="@{${ADD_PARTICIPANT_PAGE}(buyer=true)}"
699+
th:text="#{t_add_new_buyer}">
700+
Add a new buyer
701+
</a>
692702
</span>
693703
</small>
694704
<!--/*/

0 commit comments

Comments
 (0)