Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pessoa <cobalto@users.noreply.github.com>2020-12-11 18:11:47 +0300
committerGitHub <noreply@github.com>2020-12-11 18:11:47 +0300
commitbfeddf321736252216b52941ea59d707d600cc4d (patch)
tree925dd977343a99025a37a24895075bb1587e667b
parent69b1524f910f10f4e666115ee4c5c22ac4cd7ff3 (diff)
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 <cobalto@users.noreply.github.com>
-rw-r--r--i18n/en.toml5
-rw-r--r--i18n/pt-BR.toml11
-rw-r--r--layouts/_default/archives.html4
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 }}
- <h2 class="section-title">Categories</h2>
+ <h2 class="section-title">{{ T "categoriesTitle" }}</h2>
<div class="category-list">
<div class="article-list--tile">
{{ range $categories }}
@@ -29,4 +29,4 @@
{{ end }}
{{ partialCached "footer/footer" . }}
-{{ end }} \ No newline at end of file
+{{ end }}