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