diff options
| -rw-r--r-- | languages/ca.php | 11 | ||||
| -rw-r--r-- | languages/en.php | 11 | ||||
| -rw-r--r-- | languages/es.php | 11 | ||||
| -rw-r--r-- | views/default/js/lightbox.php | 10 | 
4 files changed, 43 insertions, 0 deletions
diff --git a/languages/ca.php b/languages/ca.php new file mode 100644 index 000000000..882ef9df4 --- /dev/null +++ b/languages/ca.php @@ -0,0 +1,11 @@ +<?php
 +/**
 + * Colorbox language strings
 + *
 + */
 +
 +$catalan = array(
 +	"js:lightbox:current" => "imatge %s de %s",
 +);
 +
 +add_translation("ca", $catalan);
 diff --git a/languages/en.php b/languages/en.php new file mode 100644 index 000000000..a585ca9b5 --- /dev/null +++ b/languages/en.php @@ -0,0 +1,11 @@ +<?php
 +/**
 + * Colorbox language strings
 + *
 + */
 +
 +$english = array(
 +	"js:lightbox:current" => "image %s of %s",
 +);
 +
 +add_translation("en", $english);
 diff --git a/languages/es.php b/languages/es.php new file mode 100644 index 000000000..baeea98e4 --- /dev/null +++ b/languages/es.php @@ -0,0 +1,11 @@ +<?php
 +/**
 + * Colorbox language strings
 + *
 + */
 +
 +$spanish = array(
 +	"js:lightbox:current" => "imagen %s de %s",
 +);
 +
 +add_translation("es", $spanish);
 diff --git a/views/default/js/lightbox.php b/views/default/js/lightbox.php index 6e910f635..014a33196 100644 --- a/views/default/js/lightbox.php +++ b/views/default/js/lightbox.php @@ -25,6 +25,16 @@  elgg.provide('elgg.ui.lightbox');  elgg.ui.lightbox.init = function() { + +	$.extend($.colorbox.settings, { +		current: elgg.echo('js:lightbox:current', ['{current}', '{total}']), +		previous: elgg.echo('previous'), +		next: elgg.echo('next'), +		close: elgg.echo('close'), +		xhrError: elgg.echo('error:default'), +		imgError: elgg.echo('error:default'), +	}); +  	$(".elgg-lightbox").colorbox();  	$(".elgg-lightbox-photo").colorbox({photo: true});  	var n = 0;  | 
