From 856d4f18736b2ab7bed721d4fbf239e3eb3803bc Mon Sep 17 00:00:00 2001
From: Daniel Hollas
Date: Sun, 26 Jul 2020 00:19:17 +0200
Subject: Add Czech translations + support multiple plurals

---
 README.md                       |  2 +-
 i18n/cs.toml                    | 59 +++++++++++++++++++++++++++++++++++++++++
 i18n/en.toml                    |  6 +++--
 i18n/ja.toml                    |  4 +--
 i18n/nl.toml                    |  4 +--
 i18n/pt-pt.toml                 |  4 +--
 i18n/zh-hans.toml               |  4 +--
 i18n/zh-hant.toml               |  4 +--
 layouts/partials/post-meta.html |  2 +-
 9 files changed, 75 insertions(+), 14 deletions(-)
 create mode 100644 i18n/cs.toml

diff --git a/README.md b/README.md
index 792a18c..ce9aa92 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markd
 
 After the release of v2, **there may be major changes in the image lazyload shortcode** to make it easier to use. If you want to change the color scheme, please check [🔧 Advanced configuration](#-advanced-configuration).
 
-Now supported i18n langs: en, zh-hans, zh-hant, ja, nl, pt-pt. Check the i18n folder to add more languages.
+Supported languages: `cs`, `en`, `ja`, `nl`, `pt-pt`, `zh-hans`, `zh-hant`. Check the i18n folder to add more languages.
 
 ## 📑 Table of contents
 
diff --git a/i18n/cs.toml b/i18n/cs.toml
new file mode 100644
index 0000000..a78a1c4
--- /dev/null
+++ b/i18n/cs.toml
@@ -0,0 +1,59 @@
+[sidebarToc]
+    other = "Obsah"
+
+[sidebarPages]
+    other = "Navigace"
+
+[sidebarTags]
+    other = "Štítky"
+
+[sidebarLinks]
+    other = "Odkazy"
+
+[sidebarBangumiChart]
+    other = "Bangumi"
+
+[footerPoweredFront]
+    other = "Vytvořeno pomocí "
+
+[footerPoweredEnd]
+    other = " "
+
+[postMetaNoTag]
+    other = "Bez štítků"
+
+[postMetaWordCount]
+    one = "{{.Count}} slovo"
+    few = "{{.Count}} slova"
+    many = "{{.Count}} slov"
+    other = "{{.Count}} slov"
+
+[postMetaReadingTime]
+    one = "{{.Count}} minuta"
+    few = "{{.Count}} minuty"
+    many = "{{.Count}} minut"
+    other = "{{.Count}} minut"
+
+[postCopyrightFront]
+    other = "Pokud není uvedeno jinak, tato stránka je licencována pod "
+
+[postCopyrightEnd]
+    other = "."
+
+[postComment]
+    other = "Načíst komentáře"
+
+[archivesTotalPages]
+    other = "Celkový počet článků: "
+
+[tagsCurrentTag]
+    other = "Počet článků se štítkem {{ .Title }}: "
+
+[searchSuccess]
+    other = "[NUM] výsledků ([TIME] ms)"
+
+[searchNotFound]
+    other = "Nic jsme nenašli"
+
+[searchFailed]
+    other = "Nepodařilo se načíst index"
diff --git a/i18n/en.toml b/i18n/en.toml
index 84cbd94..b2fe862 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -23,10 +23,12 @@
     other = "No tag"
 
 [postMetaWordCount]
-    other = " words"
+    one = "{{.Count}} word"
+    other = "{{.Count}} words"
 
 [postMetaReadingTime]
-    other = " minutes"
+    one = "{{.Count}} minute"
+    other = "{{.Count}} minutes"
 
 [postCopyrightFront]
     other = "Unless otherwise noted, the content of this site is licensed under "
diff --git a/i18n/ja.toml b/i18n/ja.toml
index 5e1d863..7ef7b06 100644
--- a/i18n/ja.toml
+++ b/i18n/ja.toml
@@ -23,10 +23,10 @@
     other = "タグはありません"
 
 [postMetaWordCount]
-    other = " 字"
+    other = "{{.Count}} 字"
 
 [postMetaReadingTime]
-    other = " 分"
+    other = "{{.Count}} 分"
 
 [postCopyrightFront]
     other = "特定のセクションを除いて、このサイトは "
diff --git a/i18n/nl.toml b/i18n/nl.toml
index ff8cacf..47c2c26 100644
--- a/i18n/nl.toml
+++ b/i18n/nl.toml
@@ -23,10 +23,10 @@
     other = "Geen Tags"
 
 [postMetaWordCount]
-    other = " woorden"
+    other = "{{.Count}} woorden"
 
 [postMetaReadingTime]
-    other = " minuten"
+    other = "{{.Count}} minuten"
 
 [postCopyrightFront]
     other = "Tenzij anders vermeld is de inhoud van deze site eigendom van "
diff --git a/i18n/pt-pt.toml b/i18n/pt-pt.toml
index edf9cbc..0eee83a 100644
--- a/i18n/pt-pt.toml
+++ b/i18n/pt-pt.toml
@@ -23,10 +23,10 @@
     other = "Sem tags"
 
 [postMetaWordCount]
-    other = " Palavras"
+    other = "{{.Count}} Palavras"
 
 [postMetaReadingTime]
-    other = " Minutos"
+    other = "{{.Count}} Minutos"
 
 [postCopyrightFront]
     other = "Salvo indicação em contrário, o conteúdo deste site é licenciado sob "
diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml
index 37387a0..96434a7 100644
--- a/i18n/zh-hans.toml
+++ b/i18n/zh-hans.toml
@@ -23,10 +23,10 @@
     other = "无标签"
 
 [postMetaWordCount]
-    other = " 字"
+    other = "{{.Count}} 字"
 
 [postMetaReadingTime]
-    other = " 分钟"
+    other = "{{.Count}} 分钟"
 
 [postCopyrightFront]
     other = "除特殊注明部分,本站内容采用 "
diff --git a/i18n/zh-hant.toml b/i18n/zh-hant.toml
index f629617..449186f 100644
--- a/i18n/zh-hant.toml
+++ b/i18n/zh-hant.toml
@@ -23,10 +23,10 @@
     other = "無標籤"
 
 [postMetaWordCount]
-    other = " 字"
+    other = "{{.Count}} 字"
 
 [postMetaReadingTime]
-    other = " 分鐘"
+    other = "{{.Count}} 分鐘"
 
 [postCopyrightFront]
     other = "除特殊註明部分,本站內容採用 "
diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html
index 3e366e7..9ead048 100644
--- a/layouts/partials/post-meta.html
+++ b/layouts/partials/post-meta.html
@@ -1 +1 @@
-<span><ion-icon name="today"></ion-icon>&nbsp;{{ .Date.Format "2006-01-02" }}</span>{{ if .Site.Params.showWordCounter }}<span><ion-icon name="file-tray"></ion-icon>&nbsp;{{ .WordCount }}{{ i18n "postMetaWordCount" }}</span>{{ end }}{{ if .Site.Params.showReadTime }}<span><ion-icon name="stopwatch"></ion-icon>&nbsp;{{ .ReadingTime }}{{ i18n "postMetaReadingTime" }}</span>{{ end }}<span><ion-icon name="pricetags"></ion-icon>&nbsp;{{ if .Params.tags }}{{ range .Params.tags }}<a href="{{ "/tags/" | relURL }}{{ . | urlize}}">{{ . }}</a>&nbsp;{{ end }}{{ else }}{{ i18n "postMetaNoTag" }}{{ end }}</span>
\ No newline at end of file
+<span><ion-icon name="today"></ion-icon>&nbsp;{{ .Date.Format "2006-01-02" }}</span>{{ if .Site.Params.showWordCounter }}<span><ion-icon name="file-tray"></ion-icon>&nbsp;{{ i18n "postMetaWordCount" .WordCount}}</span>{{ end }}{{ if .Site.Params.showReadTime }}<span><ion-icon name="stopwatch"></ion-icon>&nbsp;{{ i18n "postMetaReadingTime" .ReadingTime }}</span>{{ end }}<span><ion-icon name="pricetags"></ion-icon>&nbsp;{{ if .Params.tags }}{{ range .Params.tags }}<a href="{{ "/tags/" | relURL }}{{ . | urlize}}">{{ . }}</a>&nbsp;{{ end }}{{ else }}{{ i18n "postMetaNoTag" }}{{ end }}</span>
-- 
cgit v1.2.3