before localizing messages make them English
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user