Closed (fixed)
Project:
Shadowbox
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2008 at 19:03 UTC
Updated:
1 Oct 2008 at 09:42 UTC
Hi, can you enable translations? It's done easily by adding the locale to the lang file:
function shadowbox_construct_header() {
global $locale;
$path = drupal_get_path('module', 'shadowbox');
if (shadowbox_active() && variable_get('shadowbox_enabled', TRUE)) {
drupal_add_js($path .'/shadowbox/build/adapter/shadowbox-jquery.js');
drupal_add_js($path .'/shadowbox/build/shadowbox.js');
drupal_add_js($path .'/shadowbox.js');
drupal_add_js($path .'/shadowbox/src/skin/classic/skin.js');
drupal_add_css($path .'/shadowbox/src/skin/classic/skin.css');
drupal_add_js($path .'/shadowbox/build/lang/shadowbox-'.$locale.'.js');
drupal_add_js($path .'/shadowbox/build/player/shadowbox-img.js');
drupal_add_js($path .'/shadowbox/build/player/shadowbox-flv.js');
drupal_add_js($path .'/shadowbox/build/player/shadowbox-html.js');
drupal_add_js($path .'/shadowbox/build/player/shadowbox-iframe.js');
drupal_add_js($path .'/shadowbox/build/player/shadowbox-swf.js');
drupal_add_js($path .'/shadowbox/build/player/shadowbox-wmp.js');
drupal_add_js(shadowbox_get_settings(), 'setting');
}
}
Comments
Comment #1
psynaptic commentedHi there,
Thanks a lot for bringing this up and providing the code, much appreciated.
I have committed this to the module and it's available in the 5.x-2.1 release.
http://drupal.org/cvs?commit=140541
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.