From 3465ef756fee3ada3384c1208d94155df4c43540 Mon Sep 17 00:00:00 2001 From: matcornic Date: Sun, 20 Aug 2017 22:29:22 +0200 Subject: [PATCH] i18n of expand shortcode --- i18n/en.toml | 5 ++++- i18n/fr.toml | 7 +++++-- layouts/shortcodes/expand.html | 5 +++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 6c952fbe5c..118345fae9 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -20,4 +20,7 @@ other = "Go to homepage" other = "Edit this page" [Shortcuts-Title] -other = "More" \ No newline at end of file +other = "More" + +[Expand-title] +other = "Expand me..." \ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml index 6937c4695f..106f20d5b6 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -5,7 +5,7 @@ other = "Rechercher..." other = "Supprimer l'historique" [Attachments-label] -other = "Documents joints" +other = "Pièces jointes" [title-404] other = "Erreur" @@ -20,4 +20,7 @@ other = "Vers la page d'accueil" other = "Modifier la page" [Shortcuts-Title] -other = "Aller plus loin" \ No newline at end of file +other = "Aller plus loin" + +[Expand-title] +other = "Déroulez-moi..." \ No newline at end of file diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html index e579634804..d976ad8b14 100644 --- a/layouts/shortcodes/expand.html +++ b/layouts/shortcodes/expand.html @@ -2,10 +2,11 @@
+ {{$expandMessage := T "Expand-title"}} {{ if .IsNamedParams }} - {{.Get "default" | default "Expand me..."}} + {{.Get "default" | default $expandMessage}} {{else}} - {{.Get 0 | default "Expand me..."}} + {{.Get 0 | default $expandMessage}} {{end}}