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
|
@ -21,3 +21,6 @@ other = "Edit this page"
|
||||||
|
|
||||||
[Shortcuts-Title]
|
[Shortcuts-Title]
|
||||||
other = "More"
|
other = "More"
|
||||||
|
|
||||||
|
[Expand-title]
|
||||||
|
other = "Expand me..."
|
|
@ -5,7 +5,7 @@ other = "Rechercher..."
|
||||||
other = "Supprimer l'historique"
|
other = "Supprimer l'historique"
|
||||||
|
|
||||||
[Attachments-label]
|
[Attachments-label]
|
||||||
other = "Documents joints"
|
other = "Pièces jointes"
|
||||||
|
|
||||||
[title-404]
|
[title-404]
|
||||||
other = "Erreur"
|
other = "Erreur"
|
||||||
|
@ -21,3 +21,6 @@ other = "Modifier la page"
|
||||||
|
|
||||||
[Shortcuts-Title]
|
[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';});});">
|
<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>
|
<i style="font-size:x-small;" class="fa fa-chevron-right"></i>
|
||||||
<span>
|
<span>
|
||||||
|
{{$expandMessage := T "Expand-title"}}
|
||||||
{{ if .IsNamedParams }}
|
{{ if .IsNamedParams }}
|
||||||
{{.Get "default" | default "Expand me..."}}
|
{{.Get "default" | default $expandMessage}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.Get 0 | default "Expand me..."}}
|
{{.Get 0 | default $expandMessage}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue