before localizing messages make them English

This commit is contained in:
s2
2013-04-06 12:49:12 +02:00
parent 74dd36d0a8
commit d94458d656

View File

@@ -51,16 +51,16 @@ if (typeof(sw) == 'undefined') {
}; };
var gameOver = function() { var gameOver = function() {
var result = 'Sehr gut!'; var result = 'AWESOME!';
if (sw.wrongWords > 1 || sw.finaltime > 50) { if (sw.wrongWords > 0 || sw.finaltime > 60) {
result = 'Du kannst das besser!'; result = 'You can do better!';
}; };
if (sw.wrongWords > 1 || sw.finaltime > 60) { if (sw.wrongWords > 0 || sw.finaltime > 80) {
result = 'geht so...'; result = 'meh...';
}; };
if (sw.wrongWords >= 1 && sw.finaltime < 40) { if (sw.wrongWords > 0 && sw.finaltime <= 80) {
result = 'Du bist sehr schnell, aber du hast Fehler gemacht'; result = 'You are fast, but you made errors';
}; };
$("#main").empty().html('views/gameover.ejs', {result: result, time: sw.finaltime, wrong: sw.wrongWords, correct: sw.correctWords}); $("#main").empty().html('views/gameover.ejs', {result: result, time: sw.finaltime, wrong: sw.wrongWords, correct: sw.correctWords});
@@ -137,13 +137,9 @@ if (typeof(sw) == 'undefined') {
setTimeout(function() { setTimeout(function() {
if(sw.gameover) { if(sw.gameover) {
setTimeout(function() { gameOver();
gameOver();
}, 1000);
} else { } else {
setTimeout(function() { startGame(wrongWord);
startGame(wrongWord);
}, 1000);
} }
}, 1000); }, 1000);
}); });