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

@ -1084,7 +1084,7 @@ position: relative;
#importsubmitinput{
height:25px;
width:85px;
width:130px;
margin-top:12px;
}
@ -1146,4 +1146,4 @@ width:33px !important;
#editbar ul li {
padding: 4px 1px;
}
}
}

View file

@ -19,7 +19,7 @@
position: absolute;
left:0px;
background-image: url(../../static/img/timeslider_left.png);
width: 134px;
width: 200px;
height: 63px;
}
@ -164,7 +164,7 @@ div #timeslider div#steppers div#rightstep {
font-family: Arial, sans-serif;
left: 7px;
top: 9px;
width: 122px;
width: 188px;
text-align: center;
color: white;
font-size: 11px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 686 B

After

Width:  |  Height:  |  Size: 494 B

Before After
Before After

View file

@ -86,10 +86,11 @@
input[type="submit"]::-moz-focus-inner { border: 0 }
@-moz-document url-prefix() { input[type="submit"] { padding: 7px } }
</style>
<script src="minified/index.js"></script>
<link href="static/custom/index.css" rel="stylesheet">
<script src="static/custom/index.js"></script>
<div id="container">
<div id="button" onclick="go2Random()">New Pad</div><br><div id="label">or create/open a Pad with the name</div>
<div id="button" onclick="go2Random()" class="translate">New Pad</div><br><div id="label" class="translate">or create/open a Pad with the name</div>
<form action="#" onsubmit="go2Name();return false;">
<input type="text" id="padname" autofocus>
<input type="submit" value="OK">
@ -123,4 +124,4 @@
//start the costum js
if(typeof costumStart == "function") costumStart();
</script>
</html>
</html>

View file

@ -336,9 +336,10 @@ function loadBroadcastJS()
$('#timer').html(dateFormat());
var revisionDate = ["Saved", ["Jan", "Feb", "March", "April", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"][date.getMonth()], date.getDate() + ",", date.getFullYear()].join(" ")
$('#timer').html(date.toLocaleString());
var revisionDate = translate("Saved at") + " " + date.toLocaleDateString();
$('#revision_date').html(revisionDate)
}

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)))
});

View file

@ -198,19 +198,19 @@ function handshake()
{
if(obj.accessStatus == "deny")
{
$("#editorloadingbox").html("<b>You do not have permission to access this pad</b>");
$("#editorloadingbox").html("<b>" + translate("You do not have permission to access this pad") + "</b>");
}
else if(obj.accessStatus == "needPassword")
{
$("#editorloadingbox").html("<b>You need a password to access this pad</b><br>" +
$("#editorloadingbox").html("<b>" + translate("You need a password to access this pad") + "</b><br>" +
"<input id='passwordinput' type='password' name='password'>"+
"<button type='button' onclick='savePassword()'>ok</button>");
"<button type='button' onclick='savePassword()'>" + translate("ok") + "</button>");
}
else if(obj.accessStatus == "wrongPassword")
{
$("#editorloadingbox").html("<b>You're password was wrong</b><br>" +
$("#editorloadingbox").html("<b>" + translate("You're password was wrong") + "</b><br>" +
"<input id='passwordinput' type='password' name='password'>"+
"<button type='button' onclick='savePassword()'>ok</button>");
"<button type='button' onclick='savePassword()'>" + translate("ok") + "</button>");
}
}

View file

@ -62,7 +62,7 @@ var padimpexp = (function()
function fileInputSubmit()
{
$('#importmessagefail').fadeOut("fast");
var ret = window.confirm("Importing a file will overwrite the current text of the pad." + " Are you sure you want to proceed?");
var ret = window.confirm(translate("Importing a file will overwrite the current text of the pad. Are you sure you want to proceed?"));
if (ret)
{
hidePanelCall = paddocbar.hideLaterIfNoOtherInteraction();
@ -78,7 +78,7 @@ var padimpexp = (function()
$('#importsubmitinput').attr(
{
disabled: true
}).val("Importing...");
}).val(translate("Importing..."));
window.setTimeout(function()
{
$('#importfileinput').attr(
@ -106,7 +106,7 @@ var padimpexp = (function()
function importDone()
{
$('#importsubmitinput').removeAttr('disabled').val("Import Now");
$('#importsubmitinput').removeAttr('disabled').val(translate("Import Now"));
window.setTimeout(function()
{
$('#importfileinput').removeAttr('disabled');
@ -243,7 +243,7 @@ var padimpexp = (function()
$("#exportopena").remove();
$("#importexport").css({"height":"95px"});
$("#importexportline").css({"height":"95px"});
$("#import").html("Import is not available");
$("#import").html(translate("Import is not available"));
}
else if(clientVars.abiwordAvailable == "withoutPDF")
{

View file

@ -169,9 +169,7 @@
<div id="editorcontainer">
<!-- -->
</div>
<div id="editorloadingbox">
Loading...
</div>
<div id="editorloadingbox" class="translate">Loading...</div>
</div>
@ -197,6 +195,8 @@
</form>
</div>
<script>DOMTranslate("#importsubmitinput", "value");</script>
<div id="importexportline"></div>
<div id="export">
@ -270,9 +270,9 @@
<span class="translate">Reestablishing connection...</span>
</div>
<div class="disconnected">
<h2 class="h2_disconnect">Disconnected.</h2>
<h2 class="h2_userdup">Opened in another window.</h2>
<h2 class="h2_unauth">No Authorization.</h2>
<h2 class="h2_disconnect translate">Disconnected.</h2>
<h2 class="h2_userdup translate">Opened in another window.</h2>
<h2 class="h2_unauth translate">No Authorization.</h2>
<div id="disconnected_looping">
<p>
<b><span class="translate">We're having trouble talking to the EtherPad lite synchronization server.</span></b>

View file

@ -269,7 +269,7 @@
<div id="editbarright" class="editbarright">
<!-- termporary place holder-->
<a id = "returnbutton">Return to pad</a>
<a id = "returnbutton" class="translate">Return to pad</a>
<script>
$("#returnbutton").attr("href", document.referrer);
</script>