From bfeddf321736252216b52941ea59d707d600cc4d Mon Sep 17 00:00:00 2001 From: Daniel Pessoa Date: Fri, 11 Dec 2020 12:11:47 -0300 Subject: [PATCH] feat(i18n): Coverage improvements (#59) * Replace hardcoded text with i18n * Add categoriesTitle text * Add categoriesTitle text * Add new strings available Co-authored-by: Daniel Pessoa --- i18n/en.toml | 5 ++++- i18n/pt-BR.toml | 11 ++++++++++- layouts/_default/archives.html | 4 ++-- 3 files changed, 16 insertions(+), 4 deletions(-) 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 }}" diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index eadb640..4f7436f 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,10 @@ 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)" + +[footerBuiltWith] + other = "Criado com {{ .Generator }}" + +[footerDesignedBy] + other = "Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }}" \ No newline at end of file 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 }}