Lightbox: How To Translate 'image X Of X' Text?
I'm using Lightbox 2 for an image set. When a visitor of my website clicks on a thumbnail in that set, it'll show: The enlarged version of the image Underneath that: the descript
Solution 1:
With newer lightbox versions, you can use it like other options: Example:
lightbox.option({
'resizeDuration': 200,
'wrapAround': true,
'showImageNumberLabel': true,
'albumLabel': 'Bild %1 von %2',
});
Solution 2:
Take a look in /js/lightbox.js
at line 29-31:
LightboxOptions.prototype.albumLabel = function(curImageNum, albumSize) {
return"Image " + curImageNum + " of " + albumSize;
};
Translate the strings in any language / text you want to.
Based on this version: https://github.com/lokesh/lightbox2/blob/master/js/lightbox.js
Post a Comment for "Lightbox: How To Translate 'image X Of X' Text?"