From 2b4f529404f7ca0e2adf22c5875eec1de7a9ec30 Mon Sep 17 00:00:00 2001 From: Victor Lourme <victor.lourme@icloud.com> Date: Mon, 23 Nov 2020 10:11:28 +0100 Subject: [PATCH] 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 @@ <footer class="site-footer"> <section class="copyright">© {{ now.Format "2006" }} {{ .Site.Title }}</section> <section class="powerby"> - Built with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> <br /> - Theme <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="1.1.0">Stack</a></b> designed by + {{ T "footerBuiltWith" }} <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> <br /> + Theme <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="1.1.0">Stack</a></b> {{ T "footerDesignedBy" }} <a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> </section> </footer> \ No newline at end of file