From 434b25d99432f8b2ea86824bb658a18852b355dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 3 Apr 2022 12:26:25 +0200 Subject: [PATCH] i18n: add traditional chinese #233 --- README.md | 2 +- exampleSite/content/_index.en.md | 2 +- .../content/basics/migration/_index.en.md | 2 ++ exampleSite/content/cont/i18n/_index.en.md | 2 +- i18n/zh-tw.toml | 33 +++++++++++++++++++ 5 files changed, 38 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2b631d9d54..3c22815d83 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The theme is a fork of the great [Learn theme](https://github.com/matcornic/hugo - Usable offline, no external dependencies - Automatic Search - Print whole chapters or even the complete site -- Multilingual mode for English, Arabic, Simplified Chinese, Dutch, French, German, Hindi, Indonesian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese, Turkish +- Multilingual mode for English, Arabic, Simplified Chinese, Traditional Chinesse, Dutch, French, German, Hindi, Indonesian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese, Turkish - Unlimited menu levels - Automatic next/prev buttons to navigate through menu entries - Image resizing, shadow… diff --git a/exampleSite/content/_index.en.md b/exampleSite/content/_index.en.md index d2932e1f7c..e3f8b88d3c 100644 --- a/exampleSite/content/_index.en.md +++ b/exampleSite/content/_index.en.md @@ -19,7 +19,7 @@ See [what's new]({{% relref "basics/migration" %}}) within the latest update. * Usable offline, no external dependencies * [Automatic Search]({{%relref "basics/configuration#activate-search" %}}) * [Print]({{%relref "basics/configuration#activate-print-support" %}}) whole chapters or even the complete site -* [Multilingual mode]({{%relref "cont/i18n" %}}) for English, Arabic, Simplified Chinese, Dutch, French, German, Hindi, Indonesian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese, Turkish +* [Multilingual mode]({{%relref "cont/i18n" %}}) for English, Arabic, Simplified Chinese, Traditional Chinesse, Dutch, French, German, Hindi, Indonesian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese, Turkish * Unlimited menu levels * Automatic next/prev buttons to navigate through menu entries * [Image resizing, shadow...]({{%relref "cont/markdown#images" %}}) diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index fa4ea26f85..83668b06d2 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -22,6 +22,8 @@ This document shows you what's new in the latest release. For a detailed list of - **New**: You can activate [print support]({{%relref "basics/configuration#activate-print-support" %}}) in your `config.toml` to add the capability to print whole chapters or even the complete site. +- **New**: Translation for Traditional Chinese. + --- ## 3.3.0 diff --git a/exampleSite/content/cont/i18n/_index.en.md b/exampleSite/content/cont/i18n/_index.en.md index 3ef5957c64..822d27a9b1 100644 --- a/exampleSite/content/cont/i18n/_index.en.md +++ b/exampleSite/content/cont/i18n/_index.en.md @@ -7,7 +7,7 @@ The Relearn theme is fully compatible with Hugo multilingual mode. It provides: -- Translation strings for default values (English, Piratized English, Arabic, Simplified Chinese, Dutch, French, German, Hindi, Indonesian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese, Turkish). Feel free to contribute! +- Translation strings for default values (English, Piratized English, Arabic, Simplified Chinese, Traditional Chinesse, Dutch, French, German, Hindi, Indonesian, Japanese, Korean, Portuguese, Russian, Spanish, Vietnamese, Turkish). Feel free to contribute! - Automatic menu generation from multilingual content - In-browser language switching diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml index 7bf24603c6..6aa432d9ff 100644 --- a/i18n/zh-tw.toml +++ b/i18n/zh-tw.toml @@ -19,12 +19,21 @@ other = "回到首頁" [Edit-this-page] other = "編輯網頁" +[Print-this-chapter] +other = "" + [Shortcuts-Title] other = "更多" [Expand-title] other = "展開" +[Navigation-toggle] +other = "導航" + +[Toc-toggle] +other = "目錄" + [Byte-symbol] other = "B" @@ -33,3 +42,27 @@ other = "KB" [Megabyte-symbol] other = "MB" + +[note] +other = "註釋" + +[info] +other = "資訊" + +[tip] +other = "提示" + +[warning] +other = "警告" + +[Copy-to-clipboard] +other = "Copy to clipboard" + +[Copied-to-clipboard] +other = "Copied to clipboard!" + +[Copy-link-to-clipboard] +other = "Copy link to clipboard" + +[Link-copied-to-clipboard] +other = "Copied link to clipboard!"