summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramzrk22020-04-18 11:15:11 +0800
committeramzrk22020-04-18 11:15:11 +0800
commit7323b2d24082ab7b6fdae94abd09099822651f9b (patch)
treebb77bf3627d1348321449dca6747a19983b57269
parent81addf1275b95c1bb6a965daf1306c6a1dc82c50 (diff)
downloadhugo-theme-fuji-7323b2d24082ab7b6fdae94abd09099822651f9b.tar.gz
hugo-theme-fuji-7323b2d24082ab7b6fdae94abd09099822651f9b.tar.bz2
hugo-theme-fuji-7323b2d24082ab7b6fdae94abd09099822651f9b.zip
Fix missing translation
-rw-r--r--i18n/en.toml6
-rw-r--r--i18n/ja.toml6
-rw-r--r--i18n/zh-hans.toml6
-rw-r--r--i18n/zh-hant.toml6
-rw-r--r--layouts/_default/archives.html2
-rw-r--r--layouts/_default/tag.html2
6 files changed, 26 insertions, 2 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index 8a24f5c..bd4937c 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -30,3 +30,9 @@
[postCommentLoadingFailed]
other = "Comments failed to load."
+
+[archivesTotalPages]
+ other = "Total posts: "
+
+[tagsCurrentTag]
+ other = "Posts with the tag {{ .Title }}: "
diff --git a/i18n/ja.toml b/i18n/ja.toml
index 4e4e683..f70f3fc 100644
--- a/i18n/ja.toml
+++ b/i18n/ja.toml
@@ -30,3 +30,9 @@
[postCommentLoadingFailed]
other = "読み込みエラー"
+
+[archivesTotalPages]
+ other = "総記事数:"
+
+[tagsCurrentTag]
+ other = "タグ {{ .Title }} を持つ記事:"
diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml
index c690322..86d8a25 100644
--- a/i18n/zh-hans.toml
+++ b/i18n/zh-hans.toml
@@ -30,3 +30,9 @@
[postCommentLoadingFailed]
other = "评论区加载失败"
+
+[archivesTotalPages]
+ other = "文章总数:"
+
+[tagsCurrentTag]
+ other = "拥有标签 {{ .Title }} 的文章:"
diff --git a/i18n/zh-hant.toml b/i18n/zh-hant.toml
index aafb805..9186968 100644
--- a/i18n/zh-hant.toml
+++ b/i18n/zh-hant.toml
@@ -30,3 +30,9 @@
[postCommentLoadingFailed]
other = "評論區讀取失敗"
+
+[archivesTotalPages]
+ other = "文章總數:"
+
+[tagsCurrentTag]
+ other = "擁有標籤 {{ .Title }} 的文章:"
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html
index 62114b2..d4459ff 100644
--- a/layouts/_default/archives.html
+++ b/layouts/_default/archives.html
@@ -1,6 +1,6 @@
{{ define "main" }}
<div id="page-tag">
- <span>文章总数:{{ len (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}</span>
+ <span>{{ i18n "archivesTotalPages" }}{{ len (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}</span>
</div>
<!-- archives range in posts -->
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 50 }}
diff --git a/layouts/_default/tag.html b/layouts/_default/tag.html
index 5aef22f..06fdfde 100644
--- a/layouts/_default/tag.html
+++ b/layouts/_default/tag.html
@@ -1,6 +1,6 @@
{{ define "main" }}
<div id="page-tag">
- <span>拥有标签 {{ .Title }} 的文章:</span>
+ <span>{{ i18n "tagsCurrentTag" . }}</span>
</div>
<!-- tags page range in posts -->
{{ range .Paginator.Pages }}