From a5bd8106f8c2d30081bf96e7ba0d5bdcb8750aff Mon Sep 17 00:00:00 2001 From: Augusto Pace Date: Tue, 24 Oct 2023 10:01:43 +0200 Subject: [PATCH] adressed change request by using the hugo feature of singular/plural automagic for translation --- i18n/en.toml | 6 ++---- i18n/it.toml | 6 ++---- layouts/partials/cards/post.html | 8 +------- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index e26136c..0e229f7 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -125,8 +125,6 @@ other = "Liability Notice" [search] other = "Search" -[minute] -other = "minute" - [minutes] -other = "minutes" +one = "1 minute" +other = "{{.Count}} minutes" diff --git a/i18n/it.toml b/i18n/it.toml index 5f6c407..c995eb4 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -125,8 +125,6 @@ other = "Avviso di responsabilità" [search] other = "Ricerca" -[minute] -other = "minuto" - [minutes] -other = "minuti" +one = "1 minuto" +other = "{{.Count}} minuti" diff --git a/layouts/partials/cards/post.html b/layouts/partials/cards/post.html index 4d7de5e..4f6e7dd 100644 --- a/layouts/partials/cards/post.html +++ b/layouts/partials/cards/post.html @@ -14,13 +14,7 @@