Finished translation infrastructure

This commit is contained in:
Peter 'Pita' Martischka 2011-08-26 19:05:35 +01:00
parent 1ad95263cd
commit 839db813f6
15 changed files with 86 additions and 52 deletions

View file

@ -109,7 +109,7 @@ function loadBroadcastSliderJS()
{
$(this).attr('href', $(this).attr('thref').replace("%revision%", newpos));
});
$("#revision_label").html("Version " + newpos);
$("#revision_label").html(translate("Version") + " " + newpos);
if (newpos == 0)
{
@ -325,7 +325,7 @@ function loadBroadcastSliderJS()
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("Version " + Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2)));
$("#revision_label").html(translate("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)))
});