From 3423a92749ed49717546a3b4247aa373bd8c5f16 Mon Sep 17 00:00:00 2001 From: Victor Lourme Date: Wed, 18 Nov 2020 17:38:23 +0100 Subject: [PATCH] =?UTF-8?q?i18n:=20added=20missing=20translations=20*=20No?= =?UTF-8?q?te=20for=20term.html:=20I=20had=20to=20remove=20the=20"humanize?= =?UTF-8?q?"=20and=20"singularize"=20operators=20because=20this=20seems=20?= =?UTF-8?q?to=20work=20only=20for=20English.=20Exemple=20with=20French:=20?= =?UTF-8?q?Cat=C3=A9gories=20was=20transforming=20to=20Cat=C3=A9gory=20(ac?= =?UTF-8?q?cent=20was=20kept=20but=20"y"=20was=20added).=20So=20categories?= =?UTF-8?q?=20we're=20splited=20in=202=20translations=20:=20one=20for=20si?= =?UTF-8?q?ngular,=20one=20for=20plurial.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/en.toml | 17 ++++++++++++++++- i18n/fr.toml | 17 ++++++++++++++++- layouts/_default/archives.html | 2 +- layouts/_default/term.html | 4 ++-- layouts/partials/footer/footer.html | 4 ++-- 5 files changed, 37 insertions(+), 7 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 7fb76fe..3225a3e 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -29,4 +29,19 @@ other = "Type something..." [searchResultTitle] - other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)" \ No newline at end of file + other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)" + +[searchResultPost] + other = "Post" + +[categories] + other = "Categories" + +[category] + other = "Category" + +[footerBuiltWith] + other = "Built with" + +[footerDesignedBy] + other = "designed by" \ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml index ea3b0c9..1f2e9d8 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -29,4 +29,19 @@ other = "Cherchez un article, une publication, etc." [searchResultTitle] - other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)" \ No newline at end of file + other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)" + +[searchResultPost] + other = "Publication" + +[categories] + other = "Catégories" + +[category] + other = "Catégorie" + +[footerBuiltWith] + other = "Généré avec" + +[footerDesignedBy] + other = "conçu par" \ No newline at end of file diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index d2326ee..93dc0c4 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -2,7 +2,7 @@ {{ define "main" }} {{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }} {{ if $categories }} -

Categories

+

{{ T "categories" }}

{{ range $categories }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 3bfcc28..27bfda6 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -1,8 +1,8 @@ {{ define "main" }} -

{{ .Type | singularize | humanize }}

+

{{ T "category" }}

-

{{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}

+

{{ len .Pages }} {{ T "searchResultPost" }}{{ if gt (len .Pages) 1 }}s{{ end }}

{{ .Title }}

{{ with .Params.description }}

{{ . }}

diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index f8f7e39..9821e0c 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,8 +1,8 @@ \ No newline at end of file