aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-04 02:00:26 +0200
committerSem <sembrestels@riseup.net>2012-08-04 02:00:26 +0200
commitf95095e9cd347e1d64ecd8919d19acc9adeda3fe (patch)
tree0dfca8cf85dd5ca3f1001af7c6b7aa66dcbe38da /views/default
parent454eef0037445af1657641c656eca55914ea345d (diff)
downloadelgg-f95095e9cd347e1d64ecd8919d19acc9adeda3fe.tar.gz
elgg-f95095e9cd347e1d64ecd8919d19acc9adeda3fe.tar.bz2
Internationalized colorbox.
Diffstat (limited to 'views/default')
-rw-r--r--views/default/js/lightbox.php10
1 files changed, 10 insertions, 0 deletions
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;