From 982745144f18ca42cf81031a846e4c30aea210c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20F=2E=20A=2E=20de=20Pr=C3=A1?= Date: Thu, 25 Mar 2021 15:38:12 -0300 Subject: [PATCH] Fix notice and taxonomies translations (#544) * Fix missing translations for notices * Fix taxonomy translations --- i18n/en.toml | 34 ++++++++++++++++++++++++++-------- i18n/pt-br.toml | 34 ++++++++++++++++++++++++++++++++-- layouts/partials/list.html | 2 +- 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 @@ other = "Powered by" [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 @@ other = "Você pode voltar para a página inicial." [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 -}} {{ .Content }}