--- /dev/null
+<?php\r
+/**\r
+ * Colorbox language strings\r
+ *\r
+ */\r
+\r
+$catalan = array(\r
+ "js:lightbox:current" => "imatge %s de %s",\r
+);\r
+\r
+add_translation("ca", $catalan);\r
--- /dev/null
+<?php\r
+/**\r
+ * Colorbox language strings\r
+ *\r
+ */\r
+\r
+$english = array(\r
+ "js:lightbox:current" => "image %s of %s",\r
+);\r
+\r
+add_translation("en", $english);\r
--- /dev/null
+<?php\r
+/**\r
+ * Colorbox language strings\r
+ *\r
+ */\r
+\r
+$spanish = array(\r
+ "js:lightbox:current" => "imagen %s de %s",\r
+);\r
+\r
+add_translation("es", $spanish);\r
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;