From 91fbea13508ca242ab5c0db80e11de22e371891e Mon Sep 17 00:00:00 2001 From: Etienne Membrives Date: Thu, 8 Nov 2018 13:45:16 +0100 Subject: [PATCH] French translation (#102) This commit adds a French translation to the theme, and fixes a non-translated string in the blog navigation bar. --- i18n/fr.toml | 25 +++++++++++++++++++++++++ layouts/partials/nav.html | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 i18n/fr.toml diff --git a/i18n/fr.toml b/i18n/fr.toml new file mode 100644 index 0000000..b7f1dba --- /dev/null +++ b/i18n/fr.toml @@ -0,0 +1,25 @@ +[404_title] + other = "404" +[404_description] + other = "Oups ! Vous avez soit trouvé un bug{{ with .Site.Params.email }} (auquel cas, [dites-le moi](mailto:{{ . }})) {{ end }} ou vous vous imaginez des choses. Cette page n'existe pas !" +[index_projects_allProjects] + other = "Tous les projets" +[index_blog_latestPosts] + other = "Dernier article" +[index_blog_allPosts] + other = "Tous les articles" +[index_blog_readMore] + other = "Lire la suite" +[index_currentTime] + other = "Mon heure locale est" +[nav_backToSection] + other = "Retour à {{ .Title }}" +[nav_main] + other = "Accueil" +[blog_readingTime] + one = "{{ .Count }} minute de lecture" + other = "{{ .Count }} minutes de lecture" +[blog_shareThis] + other = "Partagez" +[footer_text] + other = "Thème [**Introduction**](https://github.com/vickylai/hugo-theme-introduction/) pour [Hugo](http://gohugo.io/). Fait avec [ et ](https://vickylai.com) par des contributeurs open-source." diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 769660e..4f1044c 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -74,7 +74,7 @@ {{ else }} {{ if $pageIsInBlog }} - Back to {{ .Title | singularize}} + {{ i18n "nav_backToSection" . }} {{ else }} {{ .Title | singularize}} {{ end }}