Hi, I have installed the Album mod and is trying to change the different texts from English to Danish - but for the life of me I can't get it to work. I'm using the Lightbox template.
The texts I'm trying to change is:
"( images)" which is displayed beneath the album thumbnail
"Click on a thumbnail to view a larger image. Click on the close button to close it. Return to the album index page" which is displayed above the thumbnails in an album after you click/open it.
"Image of " which is displayed below the image in the actual Lightbox popup.
I would also like to change the default images og PREV (prevlabel.gif), NEXT (nextlabel.gif) and CLOSE (closelabel.gif) to the symbols prev.gif, next.gif and close.gif (all located in modules\Album\templates\db\lightbox\images)
I seached for filenames and the texts in all files and changed in:
- modules\Album\css\stylesheet.css
- modules\Album\templates\db\lightbox.tpl
- modules\Album\templates\db\greybox.tpl
But it still just displays the english texts and labels... I REALLY don't get it....!!!
If ANYONE can help me find the spots to change/translate I would be VERY grateful.
Thank you vey much,
All the best,
Nicolaj
Edit Album module for translation
-
liudaz
Re: Edit Album module for translation
My hack for the translation would be: depending on the language, load different JS and CSS files. The text that is under the image should be hiding in the template. NEXT and PREV gifs are in the modules\Album\templates\db\lightbox\images\ directory.
You might also be looking for some texts to translate at this file: modules\Album\templates\db\lightbox\js\lightbox.js
You might also be looking for some texts to translate at this file: modules\Album\templates\db\lightbox\js\lightbox.js
-
Peciura
Re: Edit Album module for translation
Check which JS (and css) is loading in your case wherer '/modules/Album/templates/db/lightbox/js/lightbox.js' or '/modules/LightBox/js/lightbox.js'
For "Image of " look at apropriate 'lightbox.js' around 524 line.
Around line 63 there is commented configuration block. Uncomment
For "Image of " look at apropriate 'lightbox.js' around 524 line.
Around line 63 there is commented configuration block. Uncomment
Code: Select all
var fileBottomNavCloseImage = "images/closelabel.gif";
