feat: localize interface messages

This commit is contained in:
Erzbir
2026-08-07 14:45:14 +08:00
parent b556dd9a74
commit e83853ba34
22 changed files with 188 additions and 41 deletions
+3 -3
View File
@@ -7,7 +7,7 @@
<article class="post">
<header>
<h1 class="post-title"
th:with="title=${theme.config.archives_page.title ?: page.archives.title ?: 'Archives'}"
th:with="title=${theme.config.archives_page.title ?: #messages.msg('page.archives.title')}"
th:text="${title}">
Archives
</h1>
@@ -37,12 +37,12 @@
<div class="pagination-buttons">
<span th:if="${archives.hasPrevious()}">
<a data-pjax th:href="@{${archives.prevUrl}}" class="button prev inline">
<span class="button-text">&lt;&nbsp;Prev</span>
<span class="button-text" th:text="'< ' + #{page.pagination.prev}">&lt;&nbsp;Prev</span>
</a>
</span>
<span th:if="${archives.hasNext()}">
<a data-pjax th:href="@{${archives.nextUrl}}" class="button inline next">
<span class="button-text">Next&nbsp;&gt;</span>
<span class="button-text" th:text="#{page.pagination.next} + ' >'">Next&nbsp;&gt;</span>
</a>
</span>
</div>