Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  41] [ 3]  / answers: 1 / hits: 5394  / 11 Years ago, tue, december 24, 2013, 12:00:00

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 description (taken from the <a> title attribute)

  • Underneath that: the text 'Image x of x' ('Image 1 of 12', for example)



Does anyone know where to translate/change the 'Image x of x' text? I've searched through the Lightbox script and CSS files, but can't find the text anywhere.



Some additional info: I'm not using Wordpress or Drupal or any other CMS. I've found some solutions for the issue above, but these all point to files that only seem come with the Lightbox plugins for these CMSes.


More From » lightbox2

 Answers
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


[#49253] Monday, December 23, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tyreek

Total Points: 421
Total Questions: 115
Total Answers: 102

Location: Marshall Islands
Member since Mon, May 31, 2021
3 Years ago
;