From f95095e9cd347e1d64ecd8919d19acc9adeda3fe Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 4 Aug 2012 02:00:26 +0200 Subject: Internationalized colorbox. --- languages/ca.php | 11 +++++++++++ languages/en.php | 11 +++++++++++ languages/es.php | 11 +++++++++++ views/default/js/lightbox.php | 10 ++++++++++ 4 files changed, 43 insertions(+) create mode 100644 languages/ca.php create mode 100644 languages/en.php create mode 100644 languages/es.php 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 @@ + "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 @@ + "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 @@ + "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; -- cgit v1.2.3