Skip to content

Commit 36a16d2

Browse files
authored
Merge pull request #442 from stdevel/bug-posts_buttons_translation-441
Newer / older posts buttons not translated
2 parents c76a45e + 4429e1d commit 36a16d2

16 files changed

+77
-7
lines changed

i18n/de.toml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ other = "{{ .Count }} Wörter"
3737

3838
[lastModified]
3939
other = "Letzte Aktualisierung"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Neuere Beiträge"
44+
olderPosts = "Ältere Beiträge"

i18n/en.toml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ other = "{{ .Count }} Words"
3737

3838
[lastModified]
3939
other = "Last updated"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Newer posts"
44+
olderPosts = "Older posts"

i18n/es.toml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ other = "{{ .Count }} Palabras"
3737

3838
[lastModified]
3939
other = "Ultima actualización"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Entradas más recientes"
44+
olderPosts = "Entradas antiguas"

i18n/fr.toml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ other = "{{ .Count }} Mots"
3737

3838
[lastModified]
3939
other = "Mise à jour"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Articles plus récents"
44+
olderPosts = "Articles plus anciens"

i18n/gl.toml

+5
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ other = "Táboa de contidos"
3434
[wordCount]
3535
one = "Unha Palabra"
3636
other = "{{ .Count }} Palabras"
37+
38+
# partials/pagination-list.html
39+
[pagination]
40+
newerPosts = "Entradas más recientes"
41+
olderPosts = "Entradas antiguas"

i18n/id.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ one = "Satu Kata"
3636
other = "{{ .Count }} Kata"
3737

3838
[lastModified]
39-
other = "Terakhir diupdate"
39+
other = "Terakhir diupdate"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Postingan yang lebih baru"
44+
olderPosts = "Postingan yang lebih lama"

i18n/it.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Translations for English
1+
# Translations for Italian
22
# https://gohugo.io/content-management/multilingual/#translation-of-strings
33

44
# Generic
@@ -37,3 +37,8 @@ other = "{{ .Count }} parole"
3737

3838
[lastModified]
3939
other = "Ultimo aggiornamento"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Voci più recenti"
44+
olderPosts = "Voci più vecchie"

i18n/ja.toml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ other = "{{ .Count }}文字"
3737

3838
[lastModified]
3939
other = "最終更新"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "新しいエントリー"
44+
olderPosts = "古いエントリー"

i18n/lmo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Translations for English
1+
# Translations for Lombardian
22
# https://gohugo.io/content-management/multilingual/#translation-of-strings
33

44
# Generic

i18n/pt-br.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Translations for Portuguese
1+
# Translations for Portuguese (Brasilian)
22
# https://gohugo.io/content-management/multilingual/#translation-of-strings
33

44
# Generic
@@ -37,3 +37,8 @@ other = "{{ .Count }} Palavras"
3737

3838
[lastModified]
3939
other = "Última actualização"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Entradas mais recentes"
44+
olderPosts = "Entradas mais antigas"

i18n/ro.toml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ other = "{{ .Count }} de cuvinte"
3737

3838
[lastModified]
3939
other = "Ultima modificare"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Intrări mai noi"
44+
olderPosts = "Intrări mai vechi"

i18n/ru.toml

+5
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ other = "{{ .Count }} слов"
4141

4242
[lastModified]
4343
other = "Последнее обновление"
44+
45+
# partials/pagination-list.html
46+
[pagination]
47+
newerPosts = "Более новые записи"
48+
olderPosts = "Старые записи"

i18n/tr.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Translations for English
1+
# Translations for Turkish
22
# https://gohugo.io/content-management/multilingual/#translation-of-strings
33

44
# Generic
@@ -37,3 +37,8 @@ other = "{{ .Count }} Kelime"
3737

3838
[lastModified]
3939
other = "Son güncelleme"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "Daha yeni girişler"
44+
olderPosts = "Eski girişler"

i18n/uk.toml

+5
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ other = "{{ .Count }} слів"
4141

4242
[lastModified]
4343
other = "Останнє оновлення"
44+
45+
# partials/pagination-list.html
46+
[pagination]
47+
newerPosts = "Нові записи"
48+
olderPosts = "Старіші записи"

i18n/zh-cn.toml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ other = "{{ .Count }}字"
3737

3838
[lastModified]
3939
other = "最后修改"
40+
41+
# partials/pagination-list.html
42+
[pagination]
43+
newerPosts = "较新条目"
44+
olderPosts = "旧条目"

layouts/partials/pagination-list.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<span class="button previous">
55
<a href="{{ .Paginator.Prev.URL }}">
66
<span class="button__icon"></span>
7-
<span class="button__text">Newer posts</span>
7+
<span class="button__text">{{ i18n "pagination.newerPosts" }}</span>
88
</a>
99
</span>
1010
{{ end }}
1111
{{ if .Paginator.HasNext }}
1212
<span class="button next">
1313
<a href="{{ .Paginator.Next.URL }}">
14-
<span class="button__text">Older posts</span>
14+
<span class="button__text">{{ i18n "pagination.olderPosts" }}</span>
1515
<span class="button__icon"></span>
1616
</a>
1717
</span>

0 commit comments

Comments
 (0)