From 982745144f18ca42cf81031a846e4c30aea210c0 Mon Sep 17 00:00:00 2001
From: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
Date: Thu, 25 Mar 2021 18:38:12 +0000
Subject: [PATCH] Fix notice and taxonomies translations (#544)
---
i18n/en.toml | 34 +++++++++++++----
layouts/partials/list.html | 2
i18n/pt-br.toml | 34 ++++++++++++++++-
3 files changed, 59 insertions(+), 11 deletions(-)
diff --git a/i18n/en.toml b/i18n/en.toml
index f4fd23c..5282ca1 100644
--- a/i18n/en.toml
+++ b/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 @@
[see_also]
other = "See also in"
-[notice_warning]
-other = "Warning"
+[note]
+other = "note"
-[notice_tip]
-other = "Tip"
+[tip]
+other = "tip"
-[notice_note]
-other = "Note"
+[example]
+other = "example"
-[notice_info]
-other = "Info"
+[question]
+other = "question"
+
+[info]
+other = "info"
+
+[warning]
+other = "warning"
+
+[error]
+other = "error"
diff --git a/i18n/pt-br.toml b/i18n/pt-br.toml
index 8aa77ce..9f2808a 100644
--- a/i18n/pt-br.toml
+++ b/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 @@
[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"
diff --git a/layouts/partials/list.html b/layouts/partials/list.html
index 26986a2..243e1af 100644
--- a/layouts/partials/list.html
+++ b/layouts/partials/list.html
@@ -6,7 +6,7 @@
{{- print ": " -}}
{{- end -}}
- {{- .Title -}}
+ {{- i18n (lower .Title) | default .Title | title -}}
</a>
</h1>
{{ .Content }}
--
Gitblit v1.10.0