Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-07-27 16:45:56 +0300
committerOlivier Paroz <github@oparoz.com>2015-07-27 16:56:55 +0300
commitb80aa021ea8ba28e7b8c37b112512d2e0878d66a (patch)
tree83e121f82bfc707945675ab6a8fc7d45b7a4cc21 /js
parent487f095e7b781ec269c825ba545beda712602d72 (diff)
Change the way strings are loaded in the slideshow
If we add string programatically, Transifex can't see them
Diffstat (limited to 'js')
-rw-r--r--js/slideshow.js20
1 files changed, 9 insertions, 11 deletions
diff --git a/js/slideshow.js b/js/slideshow.js
index 428246f0..1621943c 100644
--- a/js/slideshow.js
+++ b/js/slideshow.js
@@ -341,36 +341,35 @@
$.get(url, function (tmpl) {
var template = $(tmpl);
var tmplButton;
- var tmplTrans;
var buttonsArray = [
{
el: '.next',
- trans: 'Next'
+ trans: t('gallery', 'Next')
},
{
el: '.play',
- trans: 'Play'
+ trans: t('gallery', 'Play')
},
{
el: '.pause',
- trans: 'Pause'
+ trans: t('gallery', 'Pause')
},
{
el: '.previous',
- trans: 'Previous'
+ trans: t('gallery', 'Previous')
},
{
el: '.exit',
- trans: 'Close'
+ trans: t('gallery', 'Close')
},
{
el: '.downloadImage',
- trans: 'Download',
+ trans: t('gallery', 'Download'),
toolTip: true
},
{
el: '.changeBackground',
- trans: 'Toggle background',
+ trans: t('gallery', 'Toggle background'),
toolTip: true
}
];
@@ -378,10 +377,9 @@
var button = buttonsArray[i];
tmplButton = template.find(button.el);
- tmplTrans = t('gallery', button.trans);
- tmplButton.val(tmplTrans);
+ tmplButton.val(button.trans);
if (button.toolTip) {
- tmplButton.attr("title", tmplTrans);
+ tmplButton.attr("title", button.trans);
}
}
self.$slideshowTemplate = template;