Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass reading time as parameter to reading-time i18n string #438

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion i18n/ca.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "Cerca"
other = "2006-01-02"

[reading-time]
other = "Minuts lectura"
other = "{{ .Count }} Minuts lectura"

[tags]
other = "Etiquetes"
Expand Down
2 changes: 1 addition & 1 deletion i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "Suchen ..."
other = "02.01.2006"

[reading-time]
other = "Min. Lesezeit"
other = "{{ .Count }} Min. Lesezeit"

[tags]
other = "Stichworte"
Expand Down
2 changes: 1 addition & 1 deletion i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "Search"
other = "Jan 2, 2006"

[reading-time]
other = "min read"
other = "{{ .Count }} min read"

[tags]
other = "Tags"
Expand Down
2 changes: 1 addition & 1 deletion i18n/eo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "buscar"
other = "2006-01-02"

[reading-time]
other = "minutos lectura"
other = "{{ .Count }} minutos lectura"

[tags]
other = "Etiquetas"
Expand Down
2 changes: 1 addition & 1 deletion i18n/fa.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ other = "دسته بندی ها"
other = "سری مطالب"

[reading-time]
other = "دقیقه بخوانید"
other = "{{ .Count }} دقیقه بخوانید"

[summary-dateformat]
other = "Jan 2, 2006"
Expand Down
2 changes: 1 addition & 1 deletion i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "Rechercher"
other = "02/01/2006"

[reading-time]
other = "min de lecture"
other = "{{ .Count }} min de lecture"

[tags]
other = "Étiquettes"
Expand Down
2 changes: 1 addition & 1 deletion i18n/ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "検索"
other = "2006/1/2"

[reading-time]
other = "分で読めます"
other = "{{ .Count }} 分で読めます"

[tags]
other = "タグ"
Expand Down
2 changes: 1 addition & 1 deletion i18n/ko.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "검색"
other = "2006년 01월 02일"

[reading-time]
other = "min read"
other = "{{ .Count }} min read"

[tags]
other = "태그"
Expand Down
2 changes: 1 addition & 1 deletion i18n/pt-br.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "Pesquisar"
other = "02-01-2006"

[reading-time]
other = "min. de leitura"
other = "{{ .Count }} min. de leitura"

[tags]
other = "Tags"
Expand Down
2 changes: 1 addition & 1 deletion i18n/ro.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion i18n/uk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "Пошук"
other = "Jan 2, 2006"

[reading-time]
other = "хв читати"
other = "{{ .Count }} хв читати"

[tags]
other = "Теги"
Expand Down
2 changes: 1 addition & 1 deletion i18n/zh.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ other = "搜索"
other = "2006年01月02日"

[reading-time]
other = "分钟"
other = "{{ .Count }} 分钟"

[tags]
other = "标签"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/body/infos.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
&nbsp;&middot;&nbsp; <time class="single__info" title="{{ i18n "tooltip-modified" }}"> {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }}&nbsp;{{ .Lastmod.Format (i18n "single-dateformat") }} </time>
{{ end }}
&nbsp;&middot;&nbsp; <span class="single__info" title="{{ i18n "tooltip-reading-time" }}"> {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ .ReadingTime }}&nbsp;{{ i18n "reading-time" }} </span>
&nbsp;&middot;&nbsp; <span class="single__info" title="{{ i18n "tooltip-reading-time" }}"> {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ i18n "reading-time" .ReadingTime }} </span>
{{ with .Params.Author }}
&nbsp;&middot;&nbsp; <span class="single__info" title="{{ i18n "single-writtenBy" }}">{{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/summary/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h6 class="subtitle caption">
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }} {{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }}</span>
{{ with $.Param "author" }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/summary/classic.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h6 class="subtitle caption">
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }}&nbsp;{{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ .ReadingTime }}&nbsp;{{ i18n "reading-time" }} </span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ i18n "reading-time" .ReadingTime }} </span>
{{ with $.Param "author" }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/summary/compact.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h6 class="subtitle caption">
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }} {{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }}</span>
{{ with $params.Author }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}
Expand Down