From 819c8ea0b4cd4765706c2d3303e654eedb3fc725 Mon Sep 17 00:00:00 2001 From: Victor Lourme Date: Mon, 23 Nov 2020 10:03:38 +0100 Subject: [PATCH 1/8] i18n: add french translations --- i18n/fr.toml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 i18n/fr.toml diff --git a/i18n/fr.toml b/i18n/fr.toml new file mode 100644 index 0000000..e26e314 --- /dev/null +++ b/i18n/fr.toml @@ -0,0 +1,32 @@ +[toggleMenu] + other = "Afficher le menu" + +[relatedContents] + other = "Contenus liés" + +[lastUpdatedOn] + other = "Dernière mise à jour le" + +[widgetArchivesTitle] + other = "Archives" + +[widgetArchivesMore] + other = "Autres" + +[widgetTagCloudTitle] + other = "Mots clés" + +[notFoundTitle] + other = "Page non trouvée" + +[notFoundSubtitle] + other = "Cette page n'existe pas." + +[searchTitle] + other = "Rechercher" + +[searchPlaceholder] + other = "Cherchez un article, une publication, etc." + +[searchResultTitle] + other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)" \ No newline at end of file From 2b4f529404f7ca0e2adf22c5875eec1de7a9ec30 Mon Sep 17 00:00:00 2001 From: Victor Lourme Date: Mon, 23 Nov 2020 10:11:28 +0100 Subject: [PATCH 2/8] i18n: added footer translations --- i18n/en.toml | 8 +++++++- i18n/fr.toml | 8 +++++++- layouts/partials/footer/footer.html | 4 ++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 7fb76fe..9df0c1d 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -29,4 +29,10 @@ other = "Type something..." [searchResultTitle] - other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)" \ No newline at end of file + other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)" + +[footerBuiltWith] + other = "Built with" + +[footerDesignedBy] + other = "designed by" \ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml index e26e314..8e33004 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -29,4 +29,10 @@ other = "Cherchez un article, une publication, etc." [searchResultTitle] - other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)" \ No newline at end of file + other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)" + +[footerBuiltWith] + other = "Généré avec" + +[footerDesignedBy] + other = "conçu par" \ No newline at end of file diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index f8f7e39..9821e0c 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,8 +1,8 @@
- Built with Hugo
- Theme Stack designed by + {{ T "footerBuiltWith" }} Hugo
+ Theme Stack {{ T "footerDesignedBy" }} Jimmy
\ No newline at end of file From 81c0b1ba9cc961fa1b2a8b121e2f9c803c4eb71c Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 28 Nov 2020 12:29:43 +0100 Subject: [PATCH 3/8] i18n: add variables for footer translation --- i18n/en.toml | 6 +++--- i18n/fr.toml | 4 ++-- layouts/partials/footer/footer.html | 10 +++++++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 9df0c1d..1a7e1c8 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -32,7 +32,7 @@ other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)" [footerBuiltWith] - other = "Built with" - + other = "Built with {{ .Generator }}" + [footerDesignedBy] - other = "designed by" \ No newline at end of file + other = "Theme {{ .Theme }} designed by {{ .DesignedBy }}" \ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml index 8e33004..03c4efa 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -32,7 +32,7 @@ other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)" [footerBuiltWith] - other = "Généré avec" + other = "Généré avec {{ .Generator }}" [footerDesignedBy] - other = "conçu par" \ No newline at end of file + other = "Thème {{ .Theme }} conçu par {{ .DesignedBy }}" \ No newline at end of file diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 9821e0c..6bd37b2 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,8 +1,12 @@ +{{- $ThemeVersion := "1.1.0" -}}
- {{ T "footerBuiltWith" }} Hugo
- Theme Stack {{ T "footerDesignedBy" }} - Jimmy + {{- $Generator := `Hugo` -}} + {{- $Theme := printf `Stack` $ThemeVersion -}} + {{- $DesignedBy := `Jimmy` -}} + + {{ T "footerBuiltWith" (dict "Generator" $Generator) | safeHTML }}
+ {{ T "footerDesignedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }}
\ No newline at end of file From 11cb95fe043de91f1ee4f730794013591172e1e4 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 4 Dec 2020 16:28:42 +0100 Subject: [PATCH 4/8] ci: upgrade Hugo version to 0.79.0 (#56) --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 08c3dca..aecd1da 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,7 @@ publish = "exampleSite/public" [build.environment] - HUGO_VERSION = "0.74.3" + HUGO_VERSION = "0.79.0" HUGO_THEME = "repo" [context.production] From 5b1bfe566da9068f1170044968fcc4ab74753387 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 4 Dec 2020 17:38:14 +0100 Subject: [PATCH 5/8] doc: migrate to GitBook closes https://github.com/CaiJimmy/hugo-theme-stack/issues/47 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc36937..e871020 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ## Documentation & more information -[Documentation](https://www.notion.so/jimmycai/Hugo-Theme-Stack-511aec5b9ed845ce9b6e3ae0bf7fb6d4) | [中文文档](https://www.notion.so/jimmycai/Hugo-Theme-Stack-511aec5b9ed845ce9b6e3ae0bf7fb6d4) +[Documentation](https://docs.stack.jimmycai.com/) | [中文文档](https://docs.stack.jimmycai.com/v/zh-cn/) ## Introduction From 108e017a325c8a503160ed1690af7c4b38afca34 Mon Sep 17 00:00:00 2001 From: Daniel Pessoa Date: Sat, 5 Dec 2020 22:48:13 -0300 Subject: [PATCH 6/8] Add pt-BR.toml Add file for Brazilian Portuguese i18n --- i18n/pt-BR.toml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 i18n/pt-BR.toml diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml new file mode 100644 index 0000000..eadb640 --- /dev/null +++ b/i18n/pt-BR.toml @@ -0,0 +1,32 @@ +[toggleMenu] + other = "Alternar Menu" + +[relatedContents] + other = "Conteúdos Relacionados" + +[lastUpdatedOn] + other ="Última atualização em" + +[widgetArchivesTitle] + other = "Arquivos" + +[widgetArchivesMore] + other = "Mais" + +[widgetTagCloudTitle] + other = "Tags" + +[notFoundTitle] + other = "Não Encontrado" + +[notFoundSubtitle] + other = "Esta página não existe." + +[searchTitle] + other = "Busca" + +[searchPlaceholder] + other = "Digite algo..." + +[searchResultTitle] + other = "#PAGES_COUNT páginas (#TIME_SECONDS segundos)" \ No newline at end of file From 27c8350f1be2b075f6ec6b21dd87b05eb8a113d8 Mon Sep 17 00:00:00 2001 From: Basix Date: Sun, 6 Dec 2020 22:59:11 +0900 Subject: [PATCH 7/8] Add Korean translations --- i18n/ko.toml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 i18n/ko.toml diff --git a/i18n/ko.toml b/i18n/ko.toml new file mode 100644 index 0000000..099477c --- /dev/null +++ b/i18n/ko.toml @@ -0,0 +1,38 @@ +[toggleMenu] + other = "메뉴 여닫기" + +[relatedContents] + other = "관련 글" + +[lastUpdatedOn] + other ="마지막 수정: " + +[widgetArchivesTitle] + other = "보관함" + +[widgetArchivesMore] + other = "더보기" + +[widgetTagCloudTitle] + other = "태그" + +[notFoundTitle] + other = "찾을 수 없음" + +[notFoundSubtitle] + other = "페이지를 찾을 수 없습니다." + +[searchTitle] + other = "검색" + +[searchPlaceholder] + other = "검색어를 입력하세요..." + +[searchResultTitle] + other = "#PAGES_COUNT 페이지 (#TIME_SECONDS 초)" + +[footerBuiltWith] + other = "{{ .Generator }}로 만듦" + +[footerDesignedBy] + other = "{{ .DesignedBy }}의 {{ .Theme }} 테마 사용 중" \ No newline at end of file From bfeddf321736252216b52941ea59d707d600cc4d Mon Sep 17 00:00:00 2001 From: Daniel Pessoa Date: Fri, 11 Dec 2020 12:11:47 -0300 Subject: [PATCH 8/8] 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 }}