From f95095e9cd347e1d64ecd8919d19acc9adeda3fe Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 4 Aug 2012 02:00:26 +0200 Subject: Internationalized colorbox. --- views/default/js/lightbox.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'views') 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; -- cgit v1.2.3