瀏覽代碼

Translation of series (#390)

Lorenzo Cameroni 5 年之前
父節點
當前提交
b60a1c42eb
共有 5 個文件被更改,包括 10 次插入1 次删除
  1. 1 0
      CONTRIBUTORS.md
  2. 3 0
      i18n/en.toml
  3. 2 0
      i18n/fr.toml
  4. 3 0
      i18n/it.toml
  5. 1 1
      layouts/partials/posts/series.html

+ 1 - 0
CONTRIBUTORS.md

@@ -73,3 +73,4 @@
 - [Pakhomov Alexander](https://github.com/PakhomovAlexander)
 - [Rhys Perry](https://rhysperry.com)
 - [Arunvel Sriram](https://github.com/arunvelsriram)
+- [Lorenzo Cameroni](https://github.com/came88)

+ 3 - 0
i18n/en.toml

@@ -22,3 +22,6 @@ other = "You can head back to <a href=\"{{ . }}\">homepage</a>."
 
 [powered_by]
 other = "Powered by"
+
+[see_also]
+other = "See also in"

+ 2 - 0
i18n/fr.toml

@@ -23,3 +23,5 @@ other = "Vous pouvez revenir à <a href=\"{{ . }}\">l'accueil</a>."
 [powered_by]
 other = "Propulsé par"
 
+[see_also]
+other = "Voir aussi dans"

+ 3 - 0
i18n/it.toml

@@ -22,3 +22,6 @@ other = "Puoi tornare a <a href=\"{{ . }}\">homepage</a>."
 
 [powered_by]
 other = "Alimentato da"
+
+[see_also]
+other = "Vedi anche in"

+ 1 - 1
layouts/partials/posts/series.html

@@ -5,7 +5,7 @@
     {{ $name := . | urlize }}
     {{ $series := index $.Site.Taxonomies.series $name }}
     {{ if gt (len $series.Pages) 1 }}
-      <h3>See also in {{ . }}</h3>
+      <h3>{{ i18n "see_also" | default "See also in" }} {{ . }}</h3>
       <nav>
         <ul>
         {{ $maxItems := $.Site.Params.maxSeeAlsoItems | default 5 }}