Skip to content

Commit

Permalink
Fix notice and taxonomies translations (luizdepra#544)
Browse files Browse the repository at this point in the history
* Fix missing translations for notices

* Fix taxonomy translations
  • Loading branch information
luizdepra authored and wlemuel committed Jun 22, 2021
1 parent 4ccb215 commit a0d4888
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 11 deletions.
34 changes: 26 additions & 8 deletions i18n/en.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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"
34 changes: 32 additions & 2 deletions i18n/pt-br.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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"
2 changes: 1 addition & 1 deletion layouts/partials/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 class="title">
{{- print ": " -}}
{{- end -}}

{{- .Title -}}
{{- i18n (lower .Title) | default .Title | title -}}
</a>
</h1>
{{ .Content }}
Expand Down

0 comments on commit a0d4888

Please sign in to comment.