Language string in imgalbum

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Tata
Posts: 2413
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Language string in imgalbum

Postby Tata » Mon Apr 10, 2017 7:37 am

I use imgalbum at http://zspalnam.sk in various albums. Now I see that in zoomed pictures, there is fron language strings in $plugin_tx['imgalbum']['magnificpopup_counter']. It writes e.g. (in SK): Foto 2 af 34. In sk.php is defined

Code: Select all

$plugin_tx['imgalbum']['magnificpopup_counter']="Obrázok: %curr% z %total%"
The only file using this variable is /plugins/imgalbum/libs/magnificpopup/magnific-popup.css and it has

Code: Select all

          gallery:{
            enabled:true,
            //tCounter: '<span class=\"mfp-counter\">Foto: %curr% af %total%</span>'
            tCounter: '".$plugin_tx[$plugin]['magnificpopup_counter']."'
            

I tried to add $sl to globals. Also tried to directly rewrite the string. Nothing has helped. The Counter sound Danish, anyway.
EDIT:
Thanks to Chris's hint, the expressions had to be correncted in plugins/imgalbum/libs/lightbox/js/lightbox.js #71 and 72. This is useful only on webpage od one language, however.
Last edited by Tata on Tue Apr 11, 2017 9:38 pm, edited 1 time in total.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Return to “Addons and Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest