1
ibzan
XoopsGallery multilingual?!?
  • 2003/12/5 12:50

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


I sork of worked out a hack to XoopsGallery to allow it multilingual functions - still testing it out to see if there is more.

In the view_album.php file after:
function showChoice
global $gallery;

Add:

$myts =& MyTextSanitizer::getInstance();

Then down further down there is the line:
$caption['title'] = $gallery->album->getCaption($i);

Change that to this:
$caption['title'] = $myts->makeTboxData4Show($gallery->album->getCaption($i));

This will allow you to have different captions based on the languages you have installed and set up.

There may be more...

Blessings,

Chris