Fixed up some missing translations.

This commit is contained in:
Raoul Snyman 2011-05-31 13:25:35 +02:00
parent ee151cde2a
commit 9f7a96c315
2 changed files with 8 additions and 7 deletions

View File

@ -27,12 +27,13 @@
-->
<head>
<meta charset="utf-8" />
<title>OpenLP 2.0 Stage View</title>
<title>${stage_title}</title>
<link rel="stylesheet" href="/files/stage.css" />
<script type="text/javascript" src="/files/jquery.js"></script>
<script type="text/javascript" src="/files/stage.js"></script>
</head>
<body>
<input type="hidden" id="next-text" value="${next}" />
<div id="right">
<div id="clock"></div>
<div id="notes"></div>

View File

@ -100,24 +100,24 @@ window.OpenLP = {
$("#tag" + OpenLP.currentTags[OpenLP.currentSlide]).addClass("currenttag");
var slide = OpenLP.currentSlides[OpenLP.currentSlide];
var text = slide["text"];
text = text.replace(/\n/g, '<br />');
text = text.replace(/\n/g, "<br />");
$("#currentslide").html(text);
text = "";
if (OpenLP.currentSlide < OpenLP.currentSlides.length - 1) {
for (var idx = OpenLP.currentSlide + 1; idx < OpenLP.currentSlides.length; idx++) {
if (OpenLP.currentTags[idx] != OpenLP.currentTags[idx - 1])
text = text + '<p class="nextslide">';
text = text + "<p class=\"nextslide\">";
text = text + OpenLP.currentSlides[idx]["text"];
if (OpenLP.currentTags[idx] != OpenLP.currentTags[idx - 1])
text = text + '</p>';
text = text + "</p>";
else
text = text + '<br />';
text = text + "<br />";
}
text = text.replace(/\n/g, '<br />');
text = text.replace(/\n/g, "<br />");
$("#nextslide").html(text);
}
else {
text = '<p class="nextslide">Next: ' + OpenLP.nextSong + '</p>';
text = "<p class=\"nextslide\">" + $("#next-text").val() + ": " + OpenLP.nextSong + "</p>";
$("#nextslide").html(text);
}
},