Log in

View Full Version : Lightbox V2.03 language



UlrikC
10-06-2007, 05:00 PM
1) Script Title:
Change language in Lightbox Image Viewer 2.03

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

3) Describe problem:

Hello,

I am using this nice script, very nice :D
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

jscheuer1
10-06-2007, 05:18 PM
Using a text only editor, find this in lightbox.js (around line #479):


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.

UlrikC
10-06-2007, 05:41 PM
Hi John

Thank You very much :D
Just what I wanted.

Kind regards
UlrikC