Wer für die Erweiterung fritzmg/contao-lightcase die Labels übersetzen möchte, z.B. „1 of 6“ in „1 von 6“ umschreiben. Der ändert die Codezeilen im template j_lightcase.html5. Die Dokumentation dazu ist unter: https://cornel.bopp-art.com/lightcas...mentation/#api
Der Code ist wie folgt:
Code:
jQuery(document).ready(function($){
$('a[data-lightbox]').each(function(){
var $this = $(this);
var c = $this.data('lightbox');
$this.lightcase({
attr: 'data-lightbox',
slideshow: true,
{{iflng::de}}
labels: {
'sequenceInfo.of': ' von ',
'close': 'Schließen',
'navigator.prev': 'Zurück',
'navigator.next': 'Nächstes',
'navigator.play': 'Abspielen',
'navigator.pause': 'Pause'
},
{{iflng}}
useAsCollection: c && $('[data-lightbox="'+c+'"]').length > 1,
showCaption: false
});
});
});
Danke an @Spooky.
Lesezeichen