Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud Lepretre <thibaud.lepretre@gmail.com>2021-10-27 11:38:45 +0300
committerGitHub <noreply@github.com>2021-10-27 11:38:45 +0300
commitea5c0b8d218da08a274020a9ebf92e1bbe456720 (patch)
treef1e6c9a8bd82091e90c9abcc30b31e3ef1fb593a
parent23422a75e8e79fb15e763b141993dc13634531c8 (diff)
parent46d17d26d2ac36241f1b286e19708d50723dcd01 (diff)
Merge pull request #532 from kofuk/plural-translationdevelop
Use plural translation value
-rw-r--r--i18n/de-de.yaml10
-rw-r--r--i18n/en-us.yaml8
-rw-r--r--i18n/es-es.yaml10
-rw-r--r--i18n/fi-fi.yaml10
-rw-r--r--i18n/fr-fr.yaml10
-rw-r--r--i18n/it-it.yaml10
-rw-r--r--i18n/ja.yaml10
-rw-r--r--i18n/nl-nl.yaml10
-rw-r--r--i18n/pl.yaml10
-rw-r--r--i18n/pt-br.yaml10
-rw-r--r--i18n/ru.yaml10
-rw-r--r--i18n/sv-se.yaml10
-rw-r--r--i18n/vi.yaml10
-rw-r--r--i18n/zh-cn.yaml10
-rw-r--r--i18n/zh-tw.yaml10
-rw-r--r--layouts/partials/post/gallery.html2
16 files changed, 46 insertions, 104 deletions
diff --git a/i18n/de-de.yaml b/i18n/de-de.yaml
index 9833b2b..c1beb4a 100644
--- a/i18n/de-de.yaml
+++ b/i18n/de-de.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Gallerie"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "bild"
-
-- id: "post.image.other"
- translation: "{n} bild"
+- id: "post.image"
+ one: "bild"
+ other: "{{ .Count }} bild"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/en-us.yaml b/i18n/en-us.yaml
index c82d08d..9032714 100644
--- a/i18n/en-us.yaml
+++ b/i18n/en-us.yaml
@@ -144,11 +144,9 @@
## POST.IMAGE ##
-- id: "post.image.one"
- translation: "image"
-
-- id: "post.image.other"
- translation: "{n} images"
+- id: "post.image"
+ one: "image"
+ other: "{{ .Count }} images"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/es-es.yaml b/i18n/es-es.yaml
index 57de2ad..14631e9 100644
--- a/i18n/es-es.yaml
+++ b/i18n/es-es.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galería"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "imágen"
-
-- id: "post.image.other"
- translation: "{n} imágenes"
+- id: "post.image"
+ one: "imágen"
+ other: "{{ .Count }} imágenes"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/fi-fi.yaml b/i18n/fi-fi.yaml
index fbd4bbc..3374f92 100644
--- a/i18n/fi-fi.yaml
+++ b/i18n/fi-fi.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galleria"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "kuva"
-
-- id: "post.image.other"
- translation: "{n} kuvaa"
+- id: "post.image"
+ one: "kuva"
+ other: "{{ .Count }} kuvaa"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/fr-fr.yaml b/i18n/fr-fr.yaml
index 6795724..9d1ae32 100644
--- a/i18n/fr-fr.yaml
+++ b/i18n/fr-fr.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galerie"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "image"
-
-- id: "post.image.other"
- translation: "{n} images"
+- id: "post.image"
+ one: "image"
+ other: "{{ .Count }} images"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/it-it.yaml b/i18n/it-it.yaml
index b6187b2..b02ea26 100644
--- a/i18n/it-it.yaml
+++ b/i18n/it-it.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galerie"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "immagine"
-
-- id: "post.image.other"
- translation: "{n} immagini"
+- id: "post.image"
+ one: "immagine"
+ other: "{{ .Count }} immagini"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/ja.yaml b/i18n/ja.yaml
index e3ba9d7..f8942b4 100644
--- a/i18n/ja.yaml
+++ b/i18n/ja.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "ギャラリー"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "1 枚の画像"
-
-- id: "post.image.other"
- translation: "{n} 枚の画像"
+- id: "post.image"
+ one: "1 枚の画像"
+ other: "{{ .Count }} 枚の画像"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/nl-nl.yaml b/i18n/nl-nl.yaml
index 274e8ac..c809e56 100644
--- a/i18n/nl-nl.yaml
+++ b/i18n/nl-nl.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galerij"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "image"
-
-- id: "post.image.other"
- translation: "{n} images"
+- id: "post.image"
+ one: "image"
+ other: "{{ .Count }} images"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/pl.yaml b/i18n/pl.yaml
index de2f42e..3005caf 100644
--- a/i18n/pl.yaml
+++ b/i18n/pl.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galeria"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "obraz"
-
-- id: "post.image.other"
- translation: "obrazów: {n}"
+- id: "post.image"
+ one: "obraz"
+ other: "{{ .Count }} obrazów"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/pt-br.yaml b/i18n/pt-br.yaml
index 8c19c3c..9657178 100644
--- a/i18n/pt-br.yaml
+++ b/i18n/pt-br.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galeria"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "imagen"
-
-- id: "post.image.other"
- translation: "{n} imagens"
+- id: "post.image"
+ one: "imagen"
+ other: "{{ .Count }} imagens"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/ru.yaml b/i18n/ru.yaml
index 9b5d0c1..55e7c99 100644
--- a/i18n/ru.yaml
+++ b/i18n/ru.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "галерея"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "образ"
-
-- id: "post.image.other"
- translation: "{n} изображений"
+- id: "post.image"
+ one: "образ"
+ other: "{{ .Count }} изображений"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/sv-se.yaml b/i18n/sv-se.yaml
index a0a510b..9fd8db2 100644
--- a/i18n/sv-se.yaml
+++ b/i18n/sv-se.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Galleri"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "bild"
-
-- id: "post.image.other"
- translation: "{n} bilder"
+- id: "post.image"
+ one: "bild"
+ other: "{{ .Count }} bilder"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/vi.yaml b/i18n/vi.yaml
index 56a14ac..c2a4bff 100644
--- a/i18n/vi.yaml
+++ b/i18n/vi.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "Bộ sưu tập"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "image"
-
-- id: "post.image.other"
- translation: "{n} images"
+- id: "post.image"
+ one: "image"
+ other: "{{ .Count }} images"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml
index 309fcb9..f0b455b 100644
--- a/i18n/zh-cn.yaml
+++ b/i18n/zh-cn.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "画廊"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "图片"
-
-- id: "post.image.other"
- translation: "{n} 图片"
+- id: "post.image"
+ one: "图片"
+ other: "{{ .Count }} 图片"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/i18n/zh-tw.yaml b/i18n/zh-tw.yaml
index 67eccd9..9b5c567 100644
--- a/i18n/zh-tw.yaml
+++ b/i18n/zh-tw.yaml
@@ -142,13 +142,9 @@
- id: "post.gallery"
translation: "畫廊"
-## POST.IMAGE ##
-
-- id: "post.image.one"
- translation: "圖片"
-
-- id: "post.image.other"
- translation: "{n} 圖片"
+- id: "post.image"
+ one: "圖片"
+ other: "{{ .Count }} 圖片"
## FOOTER ##
- id: "footer.all_rights_reserved"
diff --git a/layouts/partials/post/gallery.html b/layouts/partials/post/gallery.html
index d8e63fe..07a4276 100644
--- a/layouts/partials/post/gallery.html
+++ b/layouts/partials/post/gallery.html
@@ -5,7 +5,7 @@
{{ if gt $galleryLength 0 }}
<div class="image-gallery">
<div class="image-gallery-metabar">
- <span>{{ i18n "post.gallery"}} {{ if gt $galleryLength 1 }}{{ replace (i18n "post.image.other") "{n}" $galleryLength }}{{ else }}{{ i18n "post.image.one" }}{{ end }}</span>
+ <span>{{ i18n "post.gallery"}} {{ i18n "post.image" (dict "Count" $galleryLength) }}</span>
</div>
<div class="image-gallery-photos {{ if gt $galleryLength 2 }}image-gallery-photos--thumbnail{{ end }}">
{{ range $index, $element := .Params.gallery }}