Results 1 to 3 of 3

Thread: Lightbox V2.03 language

  1. #1
    Join Date
    Oct 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox V2.03 language

    1) Script Title:
    Change language in Lightbox Image Viewer 2.03

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem:

    Hello,

    I am using this nice script, very nice
    When showing a group of pictures, lets say 10. You click on picture nr 5:
    It says:
    "Image 5 of 10"

    How do I change the 2 words "Image" and "of"?
    I know its a small thing, but I would like to translate it to my own language.

    Kind regards
    UlrikC

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Using a text only editor, find this in lightbox.js (around line #479):

    Code:
    	updateDetails: function() {
    	
    		Element.show('caption');
    		Element.setInnerHTML( 'caption', imageArray[activeImage][1]);
    		
    		// if image is part of set display 'Image x of x' 
    		if(imageArray.length > 1){
    			Element.show('numberDisplay');
    			Element.setInnerHTML( 'numberDisplay', "Image " + eval(activeImage + 1) + " of " + imageArray.length);
    		}
    Change the words I've highlighted to whatever you like.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John

    Thank You very much
    Just what I wanted.

    Kind regards
    UlrikC

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •