feat: localize interface messages
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
<th:block th:fragment="footer">
|
||||
<div class="footer-inner">
|
||||
<div class="footer-copyright-engine">
|
||||
<span>Powered by </span>
|
||||
<span th:text="#{footer.powered_by}">Powered by</span>
|
||||
<span> </span>
|
||||
<span>
|
||||
<a target="_blank" href="http://www.halo.run">Halo</a>
|
||||
</span>
|
||||
<span> :: </span>
|
||||
<span>Theme </span>
|
||||
<span th:text="#{footer.theme}">Theme</span>
|
||||
<span> </span>
|
||||
<a target="_blank" href="https://github.com/Erzbir/halo-theme-terminal">Terminal</a>
|
||||
</div>
|
||||
<div class="footer-copyright-site">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<button
|
||||
id="search-button"
|
||||
aria-label="Open Search"
|
||||
th:attr="aria-label=#{header.search.open}"
|
||||
type="button"
|
||||
data-header-action="open-search"
|
||||
th:if="${pluginFinder.available('PluginSearchWidget')}">
|
||||
@@ -33,7 +33,7 @@
|
||||
id="color-scheme-trigger"
|
||||
class="color-scheme-trigger"
|
||||
type="button"
|
||||
aria-label="Selector Scheme"
|
||||
th:attr="aria-label=#{header.color_scheme.open}"
|
||||
aria-haspopup="listbox"
|
||||
aria-expanded="false"
|
||||
aria-controls="color-scheme-menu">
|
||||
@@ -49,7 +49,7 @@
|
||||
id="color-scheme-menu"
|
||||
class="color-scheme-menu"
|
||||
role="listbox"
|
||||
aria-label="Color Scheme List"
|
||||
th:attr="aria-label=#{header.color_scheme.list}"
|
||||
hidden>
|
||||
<button
|
||||
class="color-scheme-option"
|
||||
@@ -61,7 +61,7 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button id="theme-toggle" aria-label="Toggle Theme" type="button">
|
||||
<button id="theme-toggle" th:attr="aria-label=#{header.theme.toggle}" type="button">
|
||||
<svg class="icon-regular button-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
||||
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
|
||||
<path
|
||||
@@ -74,7 +74,7 @@
|
||||
d="M11 0h2v4h-2zm1 12H8v2H4v2H2v4h2v2h10v-2h2v-4h-2v-2h-2zm0 2v2h2v4H4v-4h4v2h2v-2H8v-2zM8 6h6v2H8zm0 2v2H6V8zm8 2h-2V8h2zm0 0h2v2h-2zm4-8h2v2h-2zm0 2v2h-2V4zM2 2h2v2H2zm2 2h2v2H4zm20 7h-4v2h4z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button id="pixel-toggle" aria-label="Toggle Pixel Style" type="button">
|
||||
<button id="pixel-toggle" th:attr="aria-label=#{header.pixel_style.toggle}" type="button">
|
||||
<svg class="icon-pixel button-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path fill="currentColor"
|
||||
d="M22 17h2v2h-2Zm-1 2h1v2h-1Zm1-6V9h1V6h-4v3h2v4h1zm-3 8h2v1h-2Zm0-8h2v1h-2Zm-1 9h1v2h-1Zm0-8h1v1h-1Zm-1 1h1v1h-1Zm-1 1h1v8h-1Zm1-3V3h1V0h-3v3h1v10ZM16 1h1v1h-1Zm-1 12h1v1h-1Zm-1 1h1v10h-1Zm-4-3h1v13h2V11h1V8h-4v3zm-1 3h1v10H9Zm-1-1h1v1H8Zm-1 5h1v6H7ZM8 7h1V3H6v4h1v6h1V7zM6 17h1v1H6Zm-1 5h1v2H5Zm0-6h1v1H5Zm1-1v-4H2v4h1v1h2v-1Zm-3-1v-1h2v1Zm0 7h2v1H3Zm-1-2h1v2H2Zm-2-2h2v2H0Z"/>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="sns-container">
|
||||
<!-- Email -->
|
||||
<a class="sns-icon"
|
||||
aria-label="Find me on Email"
|
||||
th:attr="aria-label=#{sns.email}"
|
||||
target="_blank"
|
||||
th:href="'mailto:'+${theme.config.sns.email}"
|
||||
th:if="${not #strings.isEmpty(theme.config.sns.email)}">
|
||||
@@ -20,7 +20,7 @@
|
||||
<!-- GitHub -->
|
||||
<a class="sns-icon"
|
||||
target="_blank"
|
||||
aria-label="Find me on GitHub"
|
||||
th:attr="aria-label=#{sns.github}"
|
||||
th:href="'https://github.com/'+${theme.config.sns.github}"
|
||||
th:if="${not #strings.isEmpty(theme.config.sns.github)}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="icon-regular" viewBox="0 0 24 24">
|
||||
@@ -34,7 +34,7 @@
|
||||
<!-- Discord -->
|
||||
<a class="sns-icon"
|
||||
target="_blank"
|
||||
aria-label="Find me on Discord"
|
||||
th:attr="aria-label=#{sns.discord}"
|
||||
th:href="${theme.config.sns.discord}"
|
||||
th:if="${not #strings.isEmpty(theme.config.sns.discord)}">
|
||||
<svg class="icon-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
||||
@@ -48,7 +48,7 @@
|
||||
<!-- Telegram -->
|
||||
<a class="sns-icon"
|
||||
target="_blank"
|
||||
aria-label="Find me on Telegram"
|
||||
th:attr="aria-label=#{sns.telegram}"
|
||||
th:href="'https://t.me/'+${theme.config.sns.telegram}"
|
||||
th:if="${not #strings.isEmpty(theme.config.sns.telegram)}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="icon-regular" viewBox="0 0 24 24">
|
||||
@@ -62,7 +62,7 @@
|
||||
<!-- Facebook -->
|
||||
<a class="sns-icon"
|
||||
target="_blank"
|
||||
aria-label="Find me on Facebook"
|
||||
th:attr="aria-label=#{sns.facebook}"
|
||||
th:href="'https://www.facebook.com/'+${theme.config.sns.facebook}"
|
||||
th:if="${not #strings.isEmpty(theme.config.sns.facebook)}">
|
||||
<svg class="icon-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
||||
@@ -76,7 +76,7 @@
|
||||
<!-- Instagram -->
|
||||
<a class="sns-icon"
|
||||
target="_blank"
|
||||
aria-label="Find me on Instagram"
|
||||
th:attr="aria-label=#{sns.instagram}"
|
||||
th:href="'https://www.instagram.com/'+${theme.config.sns.instagram}"
|
||||
th:if="${not #strings.isEmpty(theme.config.sns.instagram)}">
|
||||
<svg class="icon-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
||||
@@ -91,7 +91,7 @@
|
||||
<!-- X -->
|
||||
<a class="sns-icon"
|
||||
target="_blank"
|
||||
aria-label="Find me on X"
|
||||
th:attr="aria-label=#{sns.x}"
|
||||
th:href="'https://x.com/'+${theme.config.sns.x}"
|
||||
th:if="${not #strings.isEmpty(theme.config.sns.x)}">
|
||||
<svg class="icon-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
||||
@@ -109,7 +109,7 @@
|
||||
<a class="sns-icon"
|
||||
target="_blank"
|
||||
th:href="@{/rss.xml}"
|
||||
aria-label="Find me on RSS"
|
||||
th:attr="aria-label=#{sns.rss}"
|
||||
th:if="${theme.config.sns.rss}">
|
||||
<svg class="icon-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
@@ -123,4 +123,4 @@
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</th:block>
|
||||
</th:block>
|
||||
|
||||
@@ -10,7 +10,14 @@
|
||||
preferTTL: /*[[${theme.config.style.prefer_ttl ?: 24}]]*/ 24,
|
||||
pixelStyle: /*[[${theme.config.style.pixel_style}]]*/ false,
|
||||
pixelCssHref: /*[[@{/assets/dist/pixel.css?v={version}(version=${theme.spec.version})}]]*/ "",
|
||||
customCss: /*[[${theme.config.style.custom}]]*/ ""
|
||||
customCss: /*[[${theme.config.style.custom}]]*/ "",
|
||||
messages: {
|
||||
currentColorScheme: /*[[#{header.color_scheme.current}]]*/ "Current color scheme",
|
||||
defaultColorScheme: /*[[#{header.color_scheme.default}]]*/ "Default",
|
||||
showToc: /*[[#{toc.show}]]*/ "Show table of contents",
|
||||
hideToc: /*[[#{toc.hide}]]*/ "Hide table of contents",
|
||||
networkError: /*[[#{moment.network_error}]]*/ "Network error. Please try again."
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script no-pjax>
|
||||
|
||||
Reference in New Issue
Block a user