From 043bfc8727470d6cf45a738c18be1db27b16035b Mon Sep 17 00:00:00 2001 From: halulu Date: Wed, 10 May 2017 20:18:39 +0800 Subject: [PATCH 1/2] Add Chinese language support --- i18n/zh.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 i18n/zh.yaml diff --git a/i18n/zh.yaml b/i18n/zh.yaml new file mode 100644 index 0000000..3edc342 --- /dev/null +++ b/i18n/zh.yaml @@ -0,0 +1,40 @@ +# Content +- id: dateFormat + translation: "一月 2, 2006" +- id: postedOnDate + translation: "发表于 {{ .Count }}" +- id: translationsLabel + translation: "其它语言: " +- id: translationsSeparator + translation: ", " +- id: readMore + translation: "阅读全文" +- id: olderPosts + translation: "下一页" +- id: newerPosts + translation: "上一页" +- id: previousPost + translation: "前一篇" +- id: nextPost + translation: "后一篇" + +# 404 page +- id: pageNotFound + translation: "啊哦,这篇文章不存在。 (404 错误)" + +# Footer +- id: poweredBy # Accepts HTML + translation: '由 Hugo v{{ .Hugo.Version }} 强力驱动  •  主题 Beautiful Hugo 移植自 Beautiful Jekyll' + +# Navigation +- id: toggleNavigation + translation: "切换导航" +- id: languageSwitcherLabel + translation: "语言" +- id: gcseLabelShort + translation: "搜索" +- id: gcseLabelLong + translation: "搜索 {{ .Site.Title }}" +- id: gcseClose + translation: "关闭" + From 5a2c22e8e0a1477dccb9893421a61399d1c95a68 Mon Sep 17 00:00:00 2001 From: halulu Date: Wed, 10 May 2017 21:46:25 +0800 Subject: [PATCH 2/2] Fix zh.yaml --- i18n/zh.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/zh.yaml b/i18n/zh.yaml index 3edc342..9c44558 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -1,6 +1,6 @@ # Content - id: dateFormat - translation: "一月 2, 2006" + translation: "January 2, 2006" - id: postedOnDate translation: "发表于 {{ .Count }}" - id: translationsLabel