Skip to content

Commit 9827451

Browse files
authored
Fix notice and taxonomies translations (#544)
* Fix missing translations for notices * Fix taxonomy translations
1 parent c309f14 commit 9827451

File tree

3 files changed

+59
-11
lines changed

3 files changed

+59
-11
lines changed

i18n/en.toml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
[category]
22
other = "category"
33

4+
[categories]
5+
other = "categories"
6+
47
[tag]
58
other = "tag"
69

10+
[tags]
11+
other = "tags"
12+
713
[series]
814
other = "series"
915

1016
[author]
1117
other = "author"
1218

19+
[authors]
20+
other = "authors"
21+
1322
[posts]
1423
other = "posts"
1524

@@ -32,14 +41,23 @@ other = "Powered by"
3241
[see_also]
3342
other = "See also in"
3443

35-
[notice_warning]
36-
other = "Warning"
44+
[note]
45+
other = "note"
46+
47+
[tip]
48+
other = "tip"
49+
50+
[example]
51+
other = "example"
52+
53+
[question]
54+
other = "question"
3755

38-
[notice_tip]
39-
other = "Tip"
56+
[info]
57+
other = "info"
4058

41-
[notice_note]
42-
other = "Note"
59+
[warning]
60+
other = "warning"
4361

44-
[notice_info]
45-
other = "Info"
62+
[error]
63+
other = "error"

i18n/pt-br.toml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
[category]
22
other = "categoria"
33

4+
[categories]
5+
other = "categorias"
6+
47
[tag]
5-
other = "tag"
8+
other = "etiqueta"
9+
10+
[tags]
11+
other = "etiquetas"
612

713
[series]
814
other = "séries"
915

10-
[author]
16+
[autor]
1117
other = "autor"
1218

19+
[authors]
20+
other = "autores"
21+
1322
[posts]
1423
other = "artigos"
1524

@@ -28,3 +37,24 @@ other = "Você pode voltar para a <a href=\"{{ . }}\">página inicial</a>."
2837

2938
[powered_by]
3039
other = "Promovido por"
40+
41+
[note]
42+
other = "nota"
43+
44+
[tip]
45+
other = "dica"
46+
47+
[example]
48+
other = "exemplo"
49+
50+
[question]
51+
other = "pergunta"
52+
53+
[info]
54+
other = "info"
55+
56+
[warning]
57+
other = "aviso"
58+
59+
[error]
60+
other = "erro"

layouts/partials/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h1 class="title">
66
{{- print ": " -}}
77
{{- end -}}
88

9-
{{- .Title -}}
9+
{{- i18n (lower .Title) | default .Title | title -}}
1010
</a>
1111
</h1>
1212
{{ .Content }}

0 commit comments

Comments
 (0)