From 3bb8c344626b8079ca7fb92470dcc1199513ac6e Mon Sep 17 00:00:00 2001 From: Yoni Date: Sat, 21 Aug 2021 23:25:36 +0300 Subject: [PATCH] Pass reading time as parameter to reading-time i18n string --- i18n/ca.toml | 2 +- i18n/de.toml | 2 +- i18n/en.toml | 2 +- i18n/eo.toml | 2 +- i18n/es.toml | 2 +- i18n/fa.toml | 2 +- i18n/fr.toml | 2 +- i18n/ja.toml | 2 +- i18n/ko.toml | 2 +- i18n/pt-br.toml | 2 +- i18n/ro.toml | 2 +- i18n/uk.toml | 2 +- i18n/zh.toml | 2 +- layouts/partials/body/infos.html | 2 +- layouts/partials/summary/card.html | 2 +- layouts/partials/summary/classic.html | 2 +- layouts/partials/summary/compact.html | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/i18n/ca.toml b/i18n/ca.toml index 64a76301..170fb8a8 100644 --- a/i18n/ca.toml +++ b/i18n/ca.toml @@ -5,7 +5,7 @@ other = "Cerca" other = "2006-01-02" [reading-time] -other = "Minuts lectura" +other = "{{ .Count }} Minuts lectura" [tags] other = "Etiquetes" diff --git a/i18n/de.toml b/i18n/de.toml index 2998d00c..8735d616 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -5,7 +5,7 @@ other = "Suchen ..." other = "02.01.2006" [reading-time] -other = "Min. Lesezeit" +other = "{{ .Count }} Min. Lesezeit" [tags] other = "Stichworte" diff --git a/i18n/en.toml b/i18n/en.toml index 506b78fd..92dbdd68 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -5,7 +5,7 @@ other = "Search" other = "Jan 2, 2006" [reading-time] -other = "min read" +other = "{{ .Count }} min read" [tags] other = "Tags" diff --git a/i18n/eo.toml b/i18n/eo.toml index 94fc1f62..b966bcf9 100644 --- a/i18n/eo.toml +++ b/i18n/eo.toml @@ -5,7 +5,7 @@ other = "Serĉi" other = "02/01/2006" [reading-time] -other = "min de legado" +other = "{{ .Count }} min de legado" [tags] other = "Etiketoj" diff --git a/i18n/es.toml b/i18n/es.toml index 0b0e31dd..3527d8d6 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -5,7 +5,7 @@ other = "buscar" other = "2006-01-02" [reading-time] -other = "minutos lectura" +other = "{{ .Count }} minutos lectura" [tags] other = "Etiquetas" diff --git a/i18n/fa.toml b/i18n/fa.toml index 661db0a9..ff49bbdb 100644 --- a/i18n/fa.toml +++ b/i18n/fa.toml @@ -11,7 +11,7 @@ other = "دسته بندی ها" other = "سری مطالب" [reading-time] -other = "دقیقه بخوانید" +other = "{{ .Count }} دقیقه بخوانید" [summary-dateformat] other = "Jan 2, 2006" diff --git a/i18n/fr.toml b/i18n/fr.toml index a3068e85..137ad4ef 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -5,7 +5,7 @@ other = "Rechercher" other = "02/01/2006" [reading-time] -other = "min de lecture" +other = "{{ .Count }} min de lecture" [tags] other = "Étiquettes" diff --git a/i18n/ja.toml b/i18n/ja.toml index f53e2010..34ff63fb 100644 --- a/i18n/ja.toml +++ b/i18n/ja.toml @@ -5,7 +5,7 @@ other = "検索" other = "2006/1/2" [reading-time] -other = "分で読めます" +other = "{{ .Count }} 分で読めます" [tags] other = "タグ" diff --git a/i18n/ko.toml b/i18n/ko.toml index f06b6886..3a4f4630 100644 --- a/i18n/ko.toml +++ b/i18n/ko.toml @@ -5,7 +5,7 @@ other = "검색" other = "2006년 01월 02일" [reading-time] -other = "min read" +other = "{{ .Count }} min read" [tags] other = "태그" diff --git a/i18n/pt-br.toml b/i18n/pt-br.toml index ce031150..35a0c316 100644 --- a/i18n/pt-br.toml +++ b/i18n/pt-br.toml @@ -5,7 +5,7 @@ other = "Pesquisar" other = "02-01-2006" [reading-time] -other = "min. de leitura" +other = "{{ .Count }} min. de leitura" [tags] other = "Tags" diff --git a/i18n/ro.toml b/i18n/ro.toml index d062ebf4..4d98f9eb 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -5,7 +5,7 @@ other = "Căută" other = "2006-01-02" [reading-time] -other = "minute de citit" +other = "{{ .Count }} minute de citit" [tags] other = "Etichete" diff --git a/i18n/uk.toml b/i18n/uk.toml index c8e6e8d8..2887da37 100644 --- a/i18n/uk.toml +++ b/i18n/uk.toml @@ -5,7 +5,7 @@ other = "Пошук" other = "Jan 2, 2006" [reading-time] -other = "хв читати" +other = "{{ .Count }} хв читати" [tags] other = "Теги" diff --git a/i18n/zh.toml b/i18n/zh.toml index dcf297b2..104ec7c9 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -5,7 +5,7 @@ other = "搜索" other = "2006年01月02日" [reading-time] -other = "分钟" +other = "{{ .Count }} 分钟" [tags] other = "标签" diff --git a/layouts/partials/body/infos.html b/layouts/partials/body/infos.html index 632e50ce..9f227c8e 100644 --- a/layouts/partials/body/infos.html +++ b/layouts/partials/body/infos.html @@ -4,7 +4,7 @@ {{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}  ·  {{ end }} -  ·  {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} +  ·  {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }} {{ with .Params.Author }}  ·  {{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} {{ end }} diff --git a/layouts/partials/summary/card.html b/layouts/partials/summary/card.html index ed8187dc..c5ceec42 100644 --- a/layouts/partials/summary/card.html +++ b/layouts/partials/summary/card.html @@ -6,7 +6,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }} {{ end }} - · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} + · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }} {{ with $.Param "author" }} · {{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} {{ end }} diff --git a/layouts/partials/summary/classic.html b/layouts/partials/summary/classic.html index db714190..3af340f9 100644 --- a/layouts/partials/summary/classic.html +++ b/layouts/partials/summary/classic.html @@ -23,7 +23,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }} {{ end }} - · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} + · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }} {{ with $.Param "author" }} · {{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} {{ end }} diff --git a/layouts/partials/summary/compact.html b/layouts/partials/summary/compact.html index a9df1798..8ffd0eb1 100644 --- a/layouts/partials/summary/compact.html +++ b/layouts/partials/summary/compact.html @@ -9,7 +9,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }} {{ end }} - · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} + · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }} {{ with $params.Author }} · {{ if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }} {{ end }}