Fix translations in timeslider code
This commit is contained in:
parent
e34036513e
commit
f68adc8553
|
@ -304,7 +304,7 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
|
||||||
var hours = zpad(date.getHours(), 2);
|
var hours = zpad(date.getHours(), 2);
|
||||||
var minutes = zpad(date.getMinutes(), 2);
|
var minutes = zpad(date.getMinutes(), 2);
|
||||||
var seconds = zpad(date.getSeconds(), 2);
|
var seconds = zpad(date.getSeconds(), 2);
|
||||||
return (document.webL10n.get("timeslider.dateformat", {
|
return (html10n.get("timeslider.dateformat", {
|
||||||
"day": day,
|
"day": day,
|
||||||
"month": month,
|
"month": month,
|
||||||
"year": year,
|
"year": year,
|
||||||
|
@ -320,21 +320,21 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
|
||||||
|
|
||||||
$('#timer').html(dateFormat());
|
$('#timer').html(dateFormat());
|
||||||
|
|
||||||
var revisionDate = document.webL10n.get("timeslider.saved", {
|
var revisionDate = html10n.get("timeslider.saved", {
|
||||||
"day": date.getDate(),
|
"day": date.getDate(),
|
||||||
"month": [
|
"month": [
|
||||||
document.webL10n.get("timeslider.month.january"),
|
html10n.get("timeslider.month.january"),
|
||||||
document.webL10n.get("timeslider.month.february"),
|
html10n.get("timeslider.month.february"),
|
||||||
document.webL10n.get("timeslider.month.march"),
|
html10n.get("timeslider.month.march"),
|
||||||
document.webL10n.get("timeslider.month.april"),
|
html10n.get("timeslider.month.april"),
|
||||||
document.webL10n.get("timeslider.month.may"),
|
html10n.get("timeslider.month.may"),
|
||||||
document.webL10n.get("timeslider.month.june"),
|
html10n.get("timeslider.month.june"),
|
||||||
document.webL10n.get("timeslider.month.july"),
|
html10n.get("timeslider.month.july"),
|
||||||
document.webL10n.get("timeslider.month.august"),
|
html10n.get("timeslider.month.august"),
|
||||||
document.webL10n.get("timeslider.month.september"),
|
html10n.get("timeslider.month.september"),
|
||||||
document.webL10n.get("timeslider.month.october"),
|
html10n.get("timeslider.month.october"),
|
||||||
document.webL10n.get("timeslider.month.november"),
|
html10n.get("timeslider.month.november"),
|
||||||
document.webL10n.get("timeslider.month.december")
|
html10n.get("timeslider.month.december")
|
||||||
][date.getMonth()],
|
][date.getMonth()],
|
||||||
"year": date.getFullYear()
|
"year": date.getFullYear()
|
||||||
});
|
});
|
||||||
|
|
|
@ -112,7 +112,7 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
|
||||||
{
|
{
|
||||||
$(this).attr('href', $(this).attr('thref').replace("%revision%", newpos));
|
$(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)
|
if (newpos == 0)
|
||||||
{
|
{
|
||||||
|
@ -215,7 +215,7 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
|
||||||
}
|
}
|
||||||
if (authors.length == 0)
|
if (authors.length == 0)
|
||||||
{
|
{
|
||||||
authorsList.append(document.webL10n.get("timeslider.toolbar.authorsList"));
|
authorsList.append(html10n.get("timeslider.toolbar.authorsList"));
|
||||||
}
|
}
|
||||||
|
|
||||||
fixPadHeight();
|
fixPadHeight();
|
||||||
|
@ -346,7 +346,7 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
|
||||||
var newloc = self.currentLoc + (evt2.clientX - self.startLoc);
|
var newloc = self.currentLoc + (evt2.clientX - self.startLoc);
|
||||||
if (newloc < 0) newloc = 0;
|
if (newloc < 0) newloc = 0;
|
||||||
if (newloc > ($("#ui-slider-bar").width() - 2)) newloc = ($("#ui-slider-bar").width() - 2);
|
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);
|
$(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)))
|
if (getSliderPosition() != Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2))) _callSliderCallbacks(Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2)))
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue