Language string in imgalbum
Posted: 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 The only file using this variable is /plugins/imgalbum/libs/magnificpopup/magnific-popup.css and it has
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.
Code: Select all
$plugin_tx['imgalbum']['magnificpopup_counter']="Obrázok: %curr% z %total%";
Code: Select all
gallery:{
enabled:true,
//tCounter: '<span class=\"mfp-counter\">Foto: %curr% af %total%</span>'
tCounter: '".$plugin_tx[$plugin]['magnificpopup_counter']."'
}
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.