soxophoneplayer:
zc 1.3.9h zen lightbox 1.6.2
With v 1.5 lightbox I had separate set of close, prev, next French buttons with same filenames as English buttons, and I put those in my_template/buttons/french/zen_lightbox.
When viewing my site with French language selected, my french buttons would appear on the lightbox if multiple images present.
I updated to v 1.6.2 and everything else appears to be working, except the English buttons show up regardless of language selected.
The new image counter does plug in the 'de' in place of 'of' as per my edit of the extra_definitions file - which I copied into languages/french/extra_def/my_custom/zen_lightbox
Sample product page with mulitple images:
http://www.meafordwool.com/Jazzy-Socks/XXL/Foot-Loose-Autumn-XXL
Can anyone point me to where I should look to make my french buttons appear when french selected?
Thanks.
Hi,
If you want to manage multiple language support for Zen Lightbox I made some changes in code.
Feel free to use the following attachment. You have to install zen lightbox 1.6.2 and after make changes with this zip attachment.
Files changes:
includes\classes\zen_lightbox\autoload_default.php
includes\templates\YOUR-TEMPLATE-FOLDER\common\html_header.php
html_header.php come from v1.3.9h (I haven't test it because I still use a previous zen-cart version)
If you still use a previous zen-cart version, do not use html_header.php included in the attachment, but you can just add the folowing code in the file includes\templates\template_default\common\html_header.php like you can see in the attachment:
/**
- load all template-specific stylesheets, named like "style*.php", alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.php');
while(list ($key, $value) = each($directory_array)) {
$tmpcssdyn = '<script language="javascript" type="text/javascript"><!--'."\n";
$tmpcssdyn .= 'document.writeln(\'<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '?charset=' . CHARSET . '&language=' . $_SESSION['language'] . '" />\');'."\n";
$tmpcssdyn .= '//--></script>'."\n";
echo $tmpcssdyn;
}
File deleted:
includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.css
File added:
includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.php
Enjoy ;)
Jacques from France