summaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-12-19 19:55:31 +0100
committerMarcel Klehr <mklehr@gmx.net>2012-12-23 18:17:05 +0100
commitf68adc85531d0fd8e3639ff8e63485b1e65b5ee1 (patch)
tree7b59af3964aa05769fdff3c2cd4d9789cd7eac50 /src/static
parente34036513eb49d7a15c203dda0bf1a8905631f33 (diff)
downloadetherpad-lite-f68adc85531d0fd8e3639ff8e63485b1e65b5ee1.zip
Fix translations in timeslider code
Diffstat (limited to 'src/static')
-rw-r--r--src/static/js/broadcast.js28
-rw-r--r--src/static/js/broadcast_slider.js6
2 files changed, 17 insertions, 17 deletions
diff --git a/src/static/js/broadcast.js b/src/static/js/broadcast.js
index d67398fb..05e4c174 100644
--- a/src/static/js/broadcast.js
+++ b/src/static/js/broadcast.js
@@ -304,7 +304,7 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
var hours = zpad(date.getHours(), 2);
var minutes = zpad(date.getMinutes(), 2);
var seconds = zpad(date.getSeconds(), 2);
- return (document.webL10n.get("timeslider.dateformat", {
+ return (html10n.get("timeslider.dateformat", {
"day": day,
"month": month,
"year": year,
@@ -320,21 +320,21 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
$('#timer').html(dateFormat());
- var revisionDate = document.webL10n.get("timeslider.saved", {
+ var revisionDate = html10n.get("timeslider.saved", {
"day": date.getDate(),
"month": [
- document.webL10n.get("timeslider.month.january"),
- document.webL10n.get("timeslider.month.february"),
- document.webL10n.get("timeslider.month.march"),
- document.webL10n.get("timeslider.month.april"),
- document.webL10n.get("timeslider.month.may"),
- document.webL10n.get("timeslider.month.june"),
- document.webL10n.get("timeslider.month.july"),
- document.webL10n.get("timeslider.month.august"),
- document.webL10n.get("timeslider.month.september"),
- document.webL10n.get("timeslider.month.october"),
- document.webL10n.get("timeslider.month.november"),
- document.webL10n.get("timeslider.month.december")
+ html10n.get("timeslider.month.january"),
+ html10n.get("timeslider.month.february"),
+ html10n.get("timeslider.month.march"),
+ html10n.get("timeslider.month.april"),
+ html10n.get("timeslider.month.may"),
+ html10n.get("timeslider.month.june"),
+ html10n.get("timeslider.month.july"),
+ html10n.get("timeslider.month.august"),
+ html10n.get("timeslider.month.september"),
+ html10n.get("timeslider.month.october"),
+ html10n.get("timeslider.month.november"),
+ html10n.get("timeslider.month.december")
][date.getMonth()],
"year": date.getFullYear()
});
diff --git a/src/static/js/broadcast_slider.js b/src/static/js/broadcast_slider.js
index a597c926..d4fbef81 100644
--- a/src/static/js/broadcast_slider.js
+++ b/src/static/js/broadcast_slider.js
@@ -112,7 +112,7 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
{
$(this).attr('href', $(this).attr('thref').replace("%revision%", newpos));
});
- $("#revision_label").html(document.webL10n.get("timeslider.version", { "version": newpos}));
+ $("#revision_label").html(html10n.get("timeslider.version", { "version": newpos}));
if (newpos == 0)
{
@@ -215,7 +215,7 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
}
if (authors.length == 0)
{
- authorsList.append(document.webL10n.get("timeslider.toolbar.authorsList"));
+ authorsList.append(html10n.get("timeslider.toolbar.authorsList"));
}
fixPadHeight();
@@ -346,7 +346,7 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
var newloc = self.currentLoc + (evt2.clientX - self.startLoc);
if (newloc < 0) newloc = 0;
if (newloc > ($("#ui-slider-bar").width() - 2)) newloc = ($("#ui-slider-bar").width() - 2);
- $("#revision_label").html(document.webL10n.get("timeslider.version", { "version": Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2))}));
+ $("#revision_label").html(html10n.get("timeslider.version", { "version": Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2))}));
$(self).css('left', newloc);
if (getSliderPosition() != Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2))) _callSliderCallbacks(Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2)))
});