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 result = 'Sehr gut!';
var result = 'AWESOME!';
if (sw.wrongWords > 1 || sw.finaltime > 50) {
result = 'Du kannst das besser!';
if (sw.wrongWords > 0 || sw.finaltime > 60) {
result = 'You can do better!';
};
if (sw.wrongWords > 1 || sw.finaltime > 60) {
result = 'geht so...';
if (sw.wrongWords > 0 || sw.finaltime > 80) {
result = 'meh...';
};
if (sw.wrongWords >= 1 && sw.finaltime < 40) {
result = 'Du bist sehr schnell, aber du hast Fehler gemacht';
if (sw.wrongWords > 0 && sw.finaltime <= 80) {
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});
@@ -137,13 +137,9 @@ if (typeof(sw) == 'undefined') {
setTimeout(function() {
if(sw.gameover) {
setTimeout(function() {
gameOver();
}, 1000);
} else {
setTimeout(function() {
startGame(wrongWord);
}, 1000);
}
}, 1000);
});