From 9418bf35df458d188f715769f6a273678595106c Mon Sep 17 00:00:00 2001 From: saihaze Date: Thu, 3 Oct 2024 11:51:09 +0800 Subject: [PATCH 1/4] Add zh_CN locale --- i18n/zh_CN.toml | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 i18n/zh_CN.toml diff --git a/i18n/zh_CN.toml b/i18n/zh_CN.toml new file mode 100644 index 0000000..a313a26 --- /dev/null +++ b/i18n/zh_CN.toml @@ -0,0 +1,81 @@ +# Shown in language picker for multi-language sites +language_name = "简体中文" +# Tera date format used for listing posts +# (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 +date_format = "%B %d, %Y" +date_locale = "zh_CN" + +# Menu items. +# Should match the names in config.extra.nav.links and config.extra.footer.links. +Links = "链接" +Blog = "博客" +Demo = "演示" +Mods = "模组" +Coffee = "赞助" + +all_tags = "查看所有标签" +archived = "归档" +author = "作者" +blog_post_author = "博客作者" +boosts_from = "Boosts from" +by_author = "由 $AUTHOR 创作" +caution = "注意" +comments = "评论" +comments_description = "你可以使用长毛象或其他 ActivityPub/Fediverse 帐户来公开评论该帖。现有的公开评论显示在下方。" +comments_noscript = "加载评论需要依赖 JavaScript。请试着打开 JavaScript 并刷新页面,或在长毛象原帖查看。" +comments_qr = "长毛象帖子的二维码" +copy_code = "复制代码" +disclaimer = "Disclaimer" +drafted = "草稿" +faves_from = "Favorites from" +featured = "推荐" +feed = "推送" +file_an_issue = "创建议题" +filter_by_tag = "按标签过滤" +first = "首篇" +go_to_top = "回到顶部" +hot = "火热" +important = "重要" +language = "语言" +last = "末篇" +load_comments = "加载评论" +loading = "加载中" +many_minutes_read = "阅读需要 $NUMBER 分钟" +many_posts = "共有 $NUMBER 篇文章" +many_tags = "共有 $NUMBER 个标签" +minutes_read = "阅读需要 $NUMBER 分钟" +next = "下一篇" +no_comments = "目前没有评论 :/" +note = "注意" +one_posts = "共有 $NUMBER 篇文章" +one_tags = "共有 $NUMBER 个标签" +open_post = "打开帖子" +poor = "Poor" +posts = "共有 $NUMBER 篇文章" +posts_with_tag = "Posts with tag" +powered_by = "Powered by" +powered_by_and = "and" +previous = "上一篇" +published = "发布于" +reload = "重新加载" +repo = "存储库" +search = "搜索" +search_for = "寻找" +share = "分享" +skip_to_content = "跳转到正文" +source = "网站源码" +table_of_contents = "目录" +tags = "tags" +tags_title = "标签" +theme = "主题" +theme_dark = "切换到深色模式" +theme_light = "切换到浅色模式" +theme_system = "系统主题" +tip = "提示" +trigger_warning = "Trigger Warning" +updated = "修改于" +view_comment = "View Comment At" +view_profile = "View Profile At" +warning = "警告" From 31437e4289b5a35966e5a5dbcbf8eb01f2c829ff Mon Sep 17 00:00:00 2001 From: saihaze Date: Sat, 5 Oct 2024 11:15:37 +0800 Subject: [PATCH 2/4] Translate more strings to Simplified Chinese --- i18n/zh_CN.toml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/i18n/zh_CN.toml b/i18n/zh_CN.toml index a313a26..52bacb3 100644 --- a/i18n/zh_CN.toml +++ b/i18n/zh_CN.toml @@ -4,6 +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_locale = "zh_CN" @@ -19,6 +20,7 @@ all_tags = "查看所有标签" archived = "归档" author = "作者" blog_post_author = "博客作者" +# TODO: Fix the original string boosts_from = "Boosts from" by_author = "由 $AUTHOR 创作" caution = "注意" @@ -27,8 +29,9 @@ comments_description = "你可以使用长毛象或其他 ActivityPub/Fediverse comments_noscript = "加载评论需要依赖 JavaScript。请试着打开 JavaScript 并刷新页面,或在长毛象原帖查看。" comments_qr = "长毛象帖子的二维码" copy_code = "复制代码" -disclaimer = "Disclaimer" +disclaimer = "免责声明" drafted = "草稿" +# TODO: Fix the original string faves_from = "Favorites from" featured = "推荐" feed = "推送" @@ -52,9 +55,11 @@ note = "注意" one_posts = "共有 $NUMBER 篇文章" one_tags = "共有 $NUMBER 个标签" open_post = "打开帖子" -poor = "Poor" +poor = "冷清" posts = "共有 $NUMBER 篇文章" +# TODO: Fix the original string posts_with_tag = "Posts with tag" +# TODO: Fix the original string powered_by = "Powered by" powered_by_and = "and" previous = "上一篇" @@ -67,15 +72,15 @@ share = "分享" skip_to_content = "跳转到正文" source = "网站源码" table_of_contents = "目录" -tags = "tags" +tags = "标签" tags_title = "标签" theme = "主题" theme_dark = "切换到深色模式" theme_light = "切换到浅色模式" theme_system = "系统主题" tip = "提示" -trigger_warning = "Trigger Warning" +trigger_warning = "内容预警" updated = "修改于" -view_comment = "View Comment At" -view_profile = "View Profile At" +view_comment = "在此处查看评论:" +view_profile = "在此处查看个人资料:" warning = "警告" From 96c5dab8846b7a14ae92ba8579590483d23f35d1 Mon Sep 17 00:00:00 2001 From: saihaze Date: Sat, 5 Oct 2024 12:40:08 +0800 Subject: [PATCH 3/4] Translate `powered_by` --- i18n/zh_CN.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/i18n/zh_CN.toml b/i18n/zh_CN.toml index 52bacb3..7e238fc 100644 --- a/i18n/zh_CN.toml +++ b/i18n/zh_CN.toml @@ -59,9 +59,7 @@ poor = "冷清" posts = "共有 $NUMBER 篇文章" # TODO: Fix the original string posts_with_tag = "Posts with tag" -# TODO: Fix the original string -powered_by = "Powered by" -powered_by_and = "and" +powered_by = "由 $ZOLA 和 $DUCKQUILL 强力驱动" previous = "上一篇" published = "发布于" reload = "重新加载" From d8f178c685e9122335bb9ce6abe95782184cb90d Mon Sep 17 00:00:00 2001 From: saihaze Date: Sun, 6 Oct 2024 23:15:07 +0800 Subject: [PATCH 4/4] Update Simplified Chinese translation --- i18n/zh_CN.toml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/i18n/zh_CN.toml b/i18n/zh_CN.toml index 7e238fc..f5747c4 100644 --- a/i18n/zh_CN.toml +++ b/i18n/zh_CN.toml @@ -20,8 +20,7 @@ all_tags = "查看所有标签" archived = "归档" author = "作者" blog_post_author = "博客作者" -# TODO: Fix the original string -boosts_from = "Boosts from" +boosts_from = "来自 $INSTANCE 的转发" by_author = "由 $AUTHOR 创作" caution = "注意" comments = "评论" @@ -31,8 +30,7 @@ comments_qr = "长毛象帖子的二维码" copy_code = "复制代码" disclaimer = "免责声明" drafted = "草稿" -# TODO: Fix the original string -faves_from = "Favorites from" +faves_from = "来自 $INSTANCE 的点赞" featured = "推荐" feed = "推送" file_an_issue = "创建议题" @@ -57,8 +55,7 @@ one_tags = "共有 $NUMBER 个标签" open_post = "打开帖子" poor = "冷清" posts = "共有 $NUMBER 篇文章" -# TODO: Fix the original string -posts_with_tag = "Posts with tag" +posts_with_tag = "带有 $TAG 标签的文章" powered_by = "由 $ZOLA 和 $DUCKQUILL 强力驱动" previous = "上一篇" published = "发布于"