From 819c8ea0b4cd4765706c2d3303e654eedb3fc725 Mon Sep 17 00:00:00 2001 From: Victor Lourme Date: Mon, 23 Nov 2020 10:03:38 +0100 Subject: [PATCH 1/3] 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/3] 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/3] 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" -}} \ No newline at end of file