diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2020-11-28 14:35:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 14:35:34 +0300 |
commit | 6b5eae9a7e6b95497db113f5cbed11e492004d1e (patch) | |
tree | 1424190709b1ee4c47196423b060a3e45f68f3ef | |
parent | 6b5e84011131eeead8a82a309178cad5212f631e (diff) | |
parent | 81c0b1ba9cc961fa1b2a8b121e2f9c803c4eb71c (diff) |
Merge pull request #52 from vlourme/translations
i18n: added french translations & footer translation
-rw-r--r-- | i18n/en.toml | 8 | ||||
-rw-r--r-- | i18n/fr.toml | 38 | ||||
-rw-r--r-- | layouts/partials/footer/footer.html | 10 |
3 files changed, 52 insertions, 4 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index 7fb76fe..1a7e1c8 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 {{ .Generator }}" + +[footerDesignedBy] + other = "Theme {{ .Theme }} designed by {{ .DesignedBy }}"
\ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml new file mode 100644 index 0000000..03c4efa --- /dev/null +++ b/i18n/fr.toml @@ -0,0 +1,38 @@ +[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)" + +[footerBuiltWith] + other = "Généré avec {{ .Generator }}" + +[footerDesignedBy] + 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 f8f7e39..6bd37b2 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,8 +1,12 @@ +{{- $ThemeVersion := "1.1.0" -}} <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 - <a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> + {{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}} + {{- $Theme := printf `<b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="%s">Stack</a></b>` $ThemeVersion -}} + {{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>` -}} + + {{ T "footerBuiltWith" (dict "Generator" $Generator) | safeHTML }} <br /> + {{ T "footerDesignedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }} </section> </footer>
\ No newline at end of file |