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

psynaptic’s picture

Status: Active » Fixed

Hi 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

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.