From a09ac31b343186c6d847dc4666d1c4b237fe8eac Mon Sep 17 00:00:00 2001 From: "CHEN, CHUN" Date: Thu, 15 May 2025 00:29:09 +0800 Subject: [PATCH] feat(i18n): update localization for new taxonomy names in Chinese (zh) - Update the date format to the Chinese style and replace terms and phrases to generalize references from "tag" to "taxon" in several keys and messages. Signed-off-by: CHEN, CHUN --- i18n/zh-Hans.toml | 7 +++---- i18n/zh-Hant.toml | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/i18n/zh-Hans.toml b/i18n/zh-Hans.toml index f784fd7..4150d8f 100644 --- a/i18n/zh-Hans.toml +++ b/i18n/zh-Hans.toml @@ -4,8 +4,7 @@ language_name = "简体中文" # (post publication date, tag posts list...). # Not used in comments, "date_locale" is used instead. # See https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html -# TODO: Update date format to match the Chinese format. -date_format = "%B %d, %Y" +date_format = "%Y 年 %m 月 %d 日" date_locale = "zh_CN" # Menu items. @@ -16,7 +15,7 @@ Demo = "演示" Mods = "模组" Coffee = "赞助" -all_tags = "查看所有标签" +all_taxa = "查看所有$TAXON" archived = "归档" author = "作者" author_conjunction = "和" @@ -59,7 +58,7 @@ one_tags = "共有 $NUMBER 个标签" open_post = "打开帖子" poor = "冷清" posts = "共有 $NUMBER 篇文章" -posts_with_tag = "带有 $TAG 标签的文章" +posts_with_taxon = "属于 $TERM $TAXON的文章" powered_by = "由 $ZOLA 和 $DUCKQUILL 强力驱动" previous = "上一篇" published = "发布于" diff --git a/i18n/zh-Hant.toml b/i18n/zh-Hant.toml index 42e96b9..5abe57e 100644 --- a/i18n/zh-Hant.toml +++ b/i18n/zh-Hant.toml @@ -15,7 +15,7 @@ Demo = "展示" Mods = "模組" Coffee = "贊助" -all_tags = "查看所有標籤" +all_taxa = "查看所有$TAXON" archived = "封存" author = "作者" author_conjunction = "和" @@ -58,7 +58,7 @@ one_tags = "共有 $NUMBER 個標籤" open_post = "打開文章" poor = "冷清" posts = "共有 $NUMBER 篇文章" -posts_with_tag = "帶有 $TAG 標籤的文章" +posts_with_taxon = "屬於 $TERM $TAXON的文章" powered_by = "由 $ZOLA 和 $DUCKQUILL 提供" previous = "上一篇" published = "發布於"