From 85ab112a417bf9136db0568a74a4a7ba8332a0b7 Mon Sep 17 00:00:00 2001 From: Christian Stankowic Date: Sat, 21 Oct 2023 20:59:45 +0200 Subject: [PATCH 1/4] add translation lookup --- layouts/partials/pagination-list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/pagination-list.html b/layouts/partials/pagination-list.html index bc4885e..eb4de48 100644 --- a/layouts/partials/pagination-list.html +++ b/layouts/partials/pagination-list.html @@ -4,14 +4,14 @@ - Newer posts + {{ i18n "pagination.newerPosts" }} {{ end }} {{ if .Paginator.HasNext }} - Older posts + {{ i18n "pagination.olderPosts" }} From 44c31efa5ae89bdbb91161ba667fe142b41ee9eb Mon Sep 17 00:00:00 2001 From: Christian Stankowic Date: Sat, 21 Oct 2023 20:59:52 +0200 Subject: [PATCH 2/4] add English/German translations --- i18n/de.toml | 5 +++++ i18n/en.toml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/i18n/de.toml b/i18n/de.toml index 7ef99a2..dfcfc14 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -37,3 +37,8 @@ other = "{{ .Count }} Wörter" [lastModified] other = "Letzte Aktualisierung" + +# partials/pagination-list.html +[pagination] +newerPosts = "Neuere Beiträge" +olderPosts = "Ältere Beiträge" diff --git a/i18n/en.toml b/i18n/en.toml index 03c0444..9783c83 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -37,3 +37,8 @@ other = "{{ .Count }} Words" [lastModified] other = "Last updated" + +# partials/pagination-list.html +[pagination] +newerPosts = "Newer posts" +olderPosts = "Older posts" From 3e73bf146f6f544c9a7d1e7672ef64dd2b4ff2ae Mon Sep 17 00:00:00 2001 From: Christian Stankowic Date: Sat, 21 Oct 2023 21:01:15 +0200 Subject: [PATCH 3/4] add some other translations (on best effort basis) --- i18n/es.toml | 5 +++++ i18n/fr.toml | 5 +++++ i18n/gl.toml | 5 +++++ i18n/id.toml | 7 ++++++- i18n/it.toml | 5 +++++ i18n/ja.toml | 5 +++++ i18n/pt-br.toml | 7 ++++++- i18n/ro.toml | 5 +++++ i18n/ru.toml | 5 +++++ i18n/tr.toml | 5 +++++ i18n/uk.toml | 5 +++++ i18n/zh-cn.toml | 5 +++++ 12 files changed, 62 insertions(+), 2 deletions(-) diff --git a/i18n/es.toml b/i18n/es.toml index 1dce9bb..98faacc 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -37,3 +37,8 @@ other = "{{ .Count }} Palabras" [lastModified] other = "Ultima actualización" + +# partials/pagination-list.html +[pagination] +newerPosts = "Entradas más recientes" +olderPosts = "Entradas antiguas" diff --git a/i18n/fr.toml b/i18n/fr.toml index 1ba6fe9..ead83f5 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -37,3 +37,8 @@ other = "{{ .Count }} Mots" [lastModified] other = "Mise à jour" + +# partials/pagination-list.html +[pagination] +newerPosts = "Articles plus récents" +olderPosts = "Articles plus anciens" diff --git a/i18n/gl.toml b/i18n/gl.toml index 21e0e89..e805f0d 100644 --- a/i18n/gl.toml +++ b/i18n/gl.toml @@ -34,3 +34,8 @@ other = "Táboa de contidos" [wordCount] one = "Unha Palabra" other = "{{ .Count }} Palabras" + +# partials/pagination-list.html +[pagination] +newerPosts = "Entradas más recientes" +olderPosts = "Entradas antiguas" diff --git a/i18n/id.toml b/i18n/id.toml index cf5f7ee..c817730 100644 --- a/i18n/id.toml +++ b/i18n/id.toml @@ -36,4 +36,9 @@ one = "Satu Kata" other = "{{ .Count }} Kata" [lastModified] -other = "Terakhir diupdate" \ No newline at end of file +other = "Terakhir diupdate" + +# partials/pagination-list.html +[pagination] +newerPosts = "Postingan yang lebih baru" +olderPosts = "Postingan yang lebih lama" diff --git a/i18n/it.toml b/i18n/it.toml index f78a5a0..843674c 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -37,3 +37,8 @@ other = "{{ .Count }} parole" [lastModified] other = "Ultimo aggiornamento" + +# partials/pagination-list.html +[pagination] +newerPosts = "Voci più recenti" +olderPosts = "Voci più vecchie" diff --git a/i18n/ja.toml b/i18n/ja.toml index 7350c23..8e949f2 100644 --- a/i18n/ja.toml +++ b/i18n/ja.toml @@ -37,3 +37,8 @@ other = "{{ .Count }}文字" [lastModified] other = "最終更新" + +# partials/pagination-list.html +[pagination] +newerPosts = "新しいエントリー" +olderPosts = "古いエントリー" diff --git a/i18n/pt-br.toml b/i18n/pt-br.toml index b53cbcc..16db33f 100644 --- a/i18n/pt-br.toml +++ b/i18n/pt-br.toml @@ -1,4 +1,4 @@ -# Translations for Portuguese +# Translations for Portuguese (Brasilian) # https://gohugo.io/content-management/multilingual/#translation-of-strings # Generic @@ -37,3 +37,8 @@ other = "{{ .Count }} Palavras" [lastModified] other = "Última actualização" + +# partials/pagination-list.html +[pagination] +newerPosts = "Entradas mais recentes" +olderPosts = "Entradas mais antigas" diff --git a/i18n/ro.toml b/i18n/ro.toml index af97a55..8b9ece4 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -37,3 +37,8 @@ other = "{{ .Count }} de cuvinte" [lastModified] other = "Ultima modificare" + +# partials/pagination-list.html +[pagination] +newerPosts = "Intrări mai noi" +olderPosts = "Intrări mai vechi" diff --git a/i18n/ru.toml b/i18n/ru.toml index 2f16ec4..d7df61a 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -41,3 +41,8 @@ other = "{{ .Count }} слов" [lastModified] other = "Последнее обновление" + +# partials/pagination-list.html +[pagination] +newerPosts = "Более новые записи" +olderPosts = "Старые записи" diff --git a/i18n/tr.toml b/i18n/tr.toml index df7af32..87edd73 100644 --- a/i18n/tr.toml +++ b/i18n/tr.toml @@ -37,3 +37,8 @@ other = "{{ .Count }} Kelime" [lastModified] other = "Son güncelleme" + +# partials/pagination-list.html +[pagination] +newerPosts = "Daha yeni girişler" +olderPosts = "Eski girişler" diff --git a/i18n/uk.toml b/i18n/uk.toml index 890a618..c0669f4 100644 --- a/i18n/uk.toml +++ b/i18n/uk.toml @@ -41,3 +41,8 @@ other = "{{ .Count }} слів" [lastModified] other = "Останнє оновлення" + +# partials/pagination-list.html +[pagination] +newerPosts = "Нові записи" +olderPosts = "Старіші записи" diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index 7ed72a0..2f106a0 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -37,3 +37,8 @@ other = "{{ .Count }}字" [lastModified] other = "最后修改" + +# partials/pagination-list.html +[pagination] +newerPosts = "较新条目" +olderPosts = "旧条目" From 4429e1d79c58758996e43eec5523f65ae2e232d4 Mon Sep 17 00:00:00 2001 From: Christian Stankowic Date: Sat, 21 Oct 2023 21:01:24 +0200 Subject: [PATCH 4/4] fix incorrect language comments --- i18n/it.toml | 2 +- i18n/lmo.toml | 2 +- i18n/tr.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i18n/it.toml b/i18n/it.toml index 843674c..3f89d6f 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -1,4 +1,4 @@ -# Translations for English +# Translations for Italian # https://gohugo.io/content-management/multilingual/#translation-of-strings # Generic diff --git a/i18n/lmo.toml b/i18n/lmo.toml index 7616dda..4cfbbaa 100644 --- a/i18n/lmo.toml +++ b/i18n/lmo.toml @@ -1,4 +1,4 @@ -# Translations for English +# Translations for Lombardian # https://gohugo.io/content-management/multilingual/#translation-of-strings # Generic diff --git a/i18n/tr.toml b/i18n/tr.toml index 87edd73..70d20ab 100644 --- a/i18n/tr.toml +++ b/i18n/tr.toml @@ -1,4 +1,4 @@ -# Translations for English +# Translations for Turkish # https://gohugo.io/content-management/multilingual/#translation-of-strings # Generic