mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
i18n of expand shortcode
This commit is contained in:
parent
9007ec858d
commit
3465ef756f
3 changed files with 12 additions and 5 deletions
|
@ -20,4 +20,7 @@ other = "Go to homepage"
|
|||
other = "Edit this page"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "More"
|
||||
other = "More"
|
||||
|
||||
[Expand-title]
|
||||
other = "Expand me..."
|
|
@ -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"
|
||||
other = "Aller plus loin"
|
||||
|
||||
[Expand-title]
|
||||
other = "Déroulez-moi..."
|
|
@ -2,10 +2,11 @@
|
|||
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fa fa-chevron-down' : 'fa fa-chevron-right';});});">
|
||||
<i style="font-size:x-small;" class="fa fa-chevron-right"></i>
|
||||
<span>
|
||||
{{$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}}
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue