From 2f4daffd16301e644792754e69821a1544ee27e6 Mon Sep 17 00:00:00 2001 From: Razon Yang Date: Sun, 29 Oct 2023 18:43:20 +0800 Subject: [PATCH] fix(i18n): translate more UI items (#987) --- i18n/en.toml | 6 ++++++ i18n/zh-cn.toml | 6 ++++++ i18n/zh-hans.toml | 6 ++++++ i18n/zh-hant.toml | 6 ++++++ i18n/zh-hk.toml | 6 ++++++ i18n/zh-tw.toml | 6 ++++++ layouts/partials/post/panel/comments.html | 2 +- layouts/partials/post/panel/copyright.html | 2 +- layouts/partials/post/panel/sidebar-toggler.html | 2 +- layouts/partials/post/panel/toc.html | 4 ++-- layouts/partials/post/panel/translations.html | 2 +- 11 files changed, 42 insertions(+), 6 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 2a7016d63..156f7950f 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -419,6 +419,12 @@ other = "Light" [tipeee] other = "Tipeee" +[toggle_sidebar] +other = "Toggle sidebar" + +[translations] +other = "Translations" + [try_again] other = "Try again" diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index 9e956304e..4b847f1d6 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -400,6 +400,12 @@ other = "深色" [theme_light] other = "浅色" +[toggle_sidebar] +other = "切换侧边栏" + +[translations] +other = "译文" + [try_again] other = "再试一次" diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml index 9e956304e..4b847f1d6 100644 --- a/i18n/zh-hans.toml +++ b/i18n/zh-hans.toml @@ -400,6 +400,12 @@ other = "深色" [theme_light] other = "浅色" +[toggle_sidebar] +other = "切换侧边栏" + +[translations] +other = "译文" + [try_again] other = "再试一次" diff --git a/i18n/zh-hant.toml b/i18n/zh-hant.toml index 0cfe892e8..7ecf154e3 100644 --- a/i18n/zh-hant.toml +++ b/i18n/zh-hant.toml @@ -400,6 +400,12 @@ other = "深色" [theme_light] other = "淺色" +[toggle_sidebar] +other = "切換側邊欄" + +[translations] +other = "譯文" + [try_again] other = "再試一次" diff --git a/i18n/zh-hk.toml b/i18n/zh-hk.toml index 6f6a68a86..b76f93f1d 100644 --- a/i18n/zh-hk.toml +++ b/i18n/zh-hk.toml @@ -400,6 +400,12 @@ other = "深色" [theme_light] other = "淺色" +[toggle_sidebar] +other = "切換側邊欄" + +[translations] +other = "譯文" + [try_again] other = "再試一次" diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml index 0cfe892e8..7ecf154e3 100644 --- a/i18n/zh-tw.toml +++ b/i18n/zh-tw.toml @@ -400,6 +400,12 @@ other = "深色" [theme_light] other = "淺色" +[toggle_sidebar] +other = "切換側邊欄" + +[translations] +other = "譯文" + [try_again] other = "再試一次" diff --git a/layouts/partials/post/panel/comments.html b/layouts/partials/post/panel/comments.html index 59c108aaf..6ea03bd54 100644 --- a/layouts/partials/post/panel/comments.html +++ b/layouts/partials/post/panel/comments.html @@ -1,5 +1,5 @@ {{- if and (default true .Site.Params.comment) (default true .Params.comment) -}} - + {{- end -}} diff --git a/layouts/partials/post/panel/copyright.html b/layouts/partials/post/panel/copyright.html index e197fd7b7..4d52cfcbb 100644 --- a/layouts/partials/post/panel/copyright.html +++ b/layouts/partials/post/panel/copyright.html @@ -1,5 +1,5 @@ {{- if and (default true .Site.Params.post.copyright) (default true .Params.copyright) -}} - + {{- end -}} diff --git a/layouts/partials/post/panel/sidebar-toggler.html b/layouts/partials/post/panel/sidebar-toggler.html index 7826d5e1a..e3fd6a061 100644 --- a/layouts/partials/post/panel/sidebar-toggler.html +++ b/layouts/partials/post/panel/sidebar-toggler.html @@ -1,5 +1,5 @@ {{- if default true .Params.sidebar }} - + {{- end }} diff --git a/layouts/partials/post/panel/toc.html b/layouts/partials/post/panel/toc.html index 48b7cf6e2..748155733 100644 --- a/layouts/partials/post/panel/toc.html +++ b/layouts/partials/post/panel/toc.html @@ -1,10 +1,10 @@ {{- if partial "functions/toc" . -}} {{- if ne .Type "docs" }} - + {{- end }} - + {{- end -}} diff --git a/layouts/partials/post/panel/translations.html b/layouts/partials/post/panel/translations.html index 956ebd0ec..e552821bb 100644 --- a/layouts/partials/post/panel/translations.html +++ b/layouts/partials/post/panel/translations.html @@ -1,7 +1,7 @@ {{ if and .IsTranslated }}