Переглянути джерело

Fix notice and taxonomies translations (#544)

* Fix missing translations for notices

* Fix taxonomy translations
Luiz F. A. de Prá 4 роки тому
батько
коміт
982745144f
3 змінених файлів з 59 додано та 11 видалено
  1. 26 8
      i18n/en.toml
  2. 32 2
      i18n/pt-br.toml
  3. 1 1
      layouts/partials/list.html

+ 26 - 8
i18n/en.toml

@@ -1,15 +1,24 @@
 [category]
 other = "category"
 
+[categories]
+other = "categories"
+
 [tag]
 other = "tag"
 
+[tags]
+other = "tags"
+
 [series]
 other = "series"
 
 [author]
 other = "author"
 
+[authors]
+other = "authors"
+
 [posts]
 other = "posts"
 
@@ -32,14 +41,23 @@ other = "Powered by"
 [see_also]
 other = "See also in"
 
-[notice_warning]
-other = "Warning"
+[note]
+other = "note"
+
+[tip]
+other = "tip"
+
+[example]
+other = "example"
+
+[question]
+other = "question"
 
-[notice_tip]
-other = "Tip"
+[info]
+other = "info"
 
-[notice_note]
-other = "Note"
+[warning]
+other = "warning"
 
-[notice_info]
-other = "Info"
+[error]
+other = "error"

+ 32 - 2
i18n/pt-br.toml

@@ -1,15 +1,24 @@
 [category]
 other = "categoria"
 
+[categories]
+other = "categorias"
+
 [tag]
-other = "tag"
+other = "etiqueta"
+
+[tags]
+other = "etiquetas"
 
 [series]
 other = "séries"
 
-[author]
+[autor]
 other = "autor"
 
+[authors]
+other = "autores"
+
 [posts]
 other = "artigos"
 
@@ -28,3 +37,24 @@ other = "Você pode voltar para a <a href=\"{{ . }}\">página inicial</a>."
 
 [powered_by]
 other = "Promovido por"
+
+[note]
+other = "nota"
+
+[tip]
+other = "dica"
+
+[example]
+other = "exemplo"
+
+[question]
+other = "pergunta"
+
+[info]
+other = "info"
+
+[warning]
+other = "aviso"
+
+[error]
+other = "erro"

+ 1 - 1
layouts/partials/list.html

@@ -6,7 +6,7 @@
         {{- print ": " -}}
       {{- end -}}
 
-      {{- .Title -}}
+      {{- i18n (lower .Title) | default .Title | title -}}
     </a>
   </h1>
   {{ .Content }}