From c2e817e7ee9b32bd4f34f01b006793de37f8d335 Mon Sep 17 00:00:00 2001 From: Daniel Pessoa Date: Mon, 7 Dec 2020 19:37:18 -0300 Subject: [PATCH 1/3] Replace hardcoded text with i18n --- layouts/_default/archives.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index d2326ee..0071565 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -2,7 +2,7 @@ {{ define "main" }} {{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }} {{ if $categories }} -

Categories

+

{{ T "categoriesTitle" }}

{{ range $categories }} @@ -29,4 +29,4 @@ {{ end }} {{ partialCached "footer/footer" . }} -{{ end }} \ No newline at end of file +{{ end }} From e2d0b59a8b0cb59f9d2a6a4cc3b1d1500e7fa5f6 Mon Sep 17 00:00:00 2001 From: Daniel Pessoa Date: Mon, 7 Dec 2020 19:40:22 -0300 Subject: [PATCH 2/3] Add categoriesTitle text --- i18n/en.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i18n/en.toml b/i18n/en.toml index 1a7e1c8..1261a18 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -16,6 +16,9 @@ [widgetTagCloudTitle] other = "Tags" +[categoriesTitle] + other = "Categories" + [notFoundTitle] other = "Not Found" @@ -35,4 +38,4 @@ other = "Built with {{ .Generator }}" [footerDesignedBy] - other = "Theme {{ .Theme }} designed by {{ .DesignedBy }}" \ No newline at end of file + other = "Theme {{ .Theme }} designed by {{ .DesignedBy }}" From a2d7e0877eb4b800189e29437f63f2f91e51d7d5 Mon Sep 17 00:00:00 2001 From: Daniel Pessoa Date: Mon, 7 Dec 2020 19:40:34 -0300 Subject: [PATCH 3/3] Add categoriesTitle text --- i18n/pt-BR.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index eadb640..a2badbf 100644 --- a/i18n/pt-BR.toml +++ b/i18n/pt-BR.toml @@ -16,6 +16,9 @@ [widgetTagCloudTitle] other = "Tags" +[categoriesTitle] + other = "Categorias" + [notFoundTitle] other = "Não Encontrado" @@ -29,4 +32,4 @@ other = "Digite algo..." [searchResultTitle] - other = "#PAGES_COUNT páginas (#TIME_SECONDS segundos)" \ No newline at end of file + other = "#PAGES_COUNT páginas (#TIME_SECONDS segundos)"