Gitlab CSE Unil

Commit c3c21878 authored by M. Chardon's avatar M. Chardon
Browse files

alea - traduction jeu

parent 9c9808d7
......@@ -49,7 +49,7 @@
<ul class="nav navbar-nav navbar-right">
<li><a onclick="initLang('en');"><img style="background: white; height:25px;" alt="English" src="../img/flags/english.png"/></a></li>
<li><a onclick="initLang('fr');"><img style="background: white;height:25px;" alt="Français" src="../img/flags/french.png"/></a></li>
<li><a href="help.html">Help</a></li>
<li><a href="help.html"><span class="i18n" data-lang="help"></span></a></li>
</ul>
</div>
</div>
......@@ -58,10 +58,10 @@
<div class="row">
<div class="col-sm-3">
<ul class="nav nav-pills nav-stacked">
<li><a href="index.html">Step 1: test your sequence</a></li>
<li><a href="pasapas.html">Step 2: test the computeur</a></li>
<li><a href="understand.html">Step 3: understand</a></li>
<li class="active"><a href="games.html">Game</a></li>
<li><a href="index.html"><span class="i18n" data-lang="step1"></span></a></li>
<li><a href="pasapas.html"><span class="i18n" data-lang="step2"></span></a></li>
<li><a href="understand.html"><span class="i18n" data-lang="step3"></span></a></li>
<li class="active"><a href="games.html"><span class="i18n" data-lang="step4"></span></a></li>
</ul>
</div>
<div class="col-sm-9" style="padding-left: 20px;">
......@@ -71,27 +71,26 @@
<div class="alert alert-info alert-dismissable">
<strong>Info!</strong>
<p>
Here is a game: you against the machine. Will you be
able to deceive it? Or are you predictable?
<span class="i18n" data-lang="game_info"></span>
</p>
</div>
<div class="panel panel-default" id='playerdiv'>
<div class="panel-heading">Game configuration</div>
<div class="panel-heading"><span class="i18n" data-lang="game_config"></span></div>
<div class="panel-body">
<div class="row" >
<div class="col-sm-4">
<b>Play against:</b><br/>
<input class='vs' type="radio" name="vs" value="computer" checked='checked' /> the computer<br/>
<input class='vs' type="radio" name="vs" value="player"/> an other player
<b><span class="i18n" data-lang="game_play_against"></span>:</b><br/>
<input class='vs' type="radio" name="vs" value="computer" checked='checked' /> <span class="i18n" data-lang="game_play_against_computeur"></span><br/>
<input class='vs' type="radio" name="vs" value="player"/> <span class="i18n" data-lang="game_play_against_other_player"></span>
</div>
<div class="col-sm-4">
<b>Name:</b><br/>
<b><span class="i18n" data-lang="game_play_against_other_player_name"></span>:</b><br/>
<input type="text" id="nameplayerA" placeholder="Player A" class='form-control' />
<input type="text" id="nameplayerB" placeholder="Player B" class='form-control' style='display: none;'/>
</div>
<div class="col-sm-offset-1 col-sm-3">
<button class="btn btn-default" onclick="startGame();"><i class="fa fa-play" aria-hidden="true"></i> Let's go!</button>
<button class="btn btn-default" onclick="startGame();"><i class="fa fa-play" aria-hidden="true"></i> <span class="i18n" data-lang="game_play_ok"></span>!</button>
</div>
</div>
</div>
......@@ -103,7 +102,7 @@
<div class="row">
<div class="col-sm-offset-9 col-sm-1">
<button class="btn btn-default" onclick="reset();">Restart game</button>
<button class="btn btn-default" onclick="reset();"><span class="i18n" data-lang="game_restart"></span></button>
</div>
</div>
<div class="row" style='margin-top: 10px;'>
......@@ -133,19 +132,19 @@
<div class="row" id='propositionPanelA' style="display:none;">
<div class="col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">Percent correct answers</div>
<div class="panel-heading"><span class="i18n" data-lang="perc_correct"></span></div>
<div class="panel-body">
<div class="row">
<ul>
<li><span style="color:orange;">Orange: wrong guess</span></li>
<li><span style="color:blue;">Blue: right guess</span></li>
<li><span style="color:orange;"><span class="i18n" data-lang="orange_wrong"></span></span></li>
<li><span style="color:blue;"><span class="i18n" data-lang="blue_right"></span></span></li>
</ul>
<div class="col-sm-6">
Total of right guesses:
<span class="i18n" data-lang="tot_right"></span>:
<input class="form-control" readonly="readonly" id="guessValueCorrectA" />
</div>
<div class="col-sm-6">
About the last 10 results:
<span class="i18n" data-lang="10_res"></span>:
<input class="form-control" readonly="readonly" id="guessValueCorrect10A" />
</div>
</div>
......@@ -182,19 +181,19 @@
<div class="row" id='propositionPanelB' style="display:none;">
<div class="col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">Percent correct answers</div>
<div class="panel-heading"><span class="i18n" data-lang="perc_correct"></span></div>
<div class="panel-body">
<div class="row">
<ul>
<li><span style="color:orange;">Orange: wrong guess</span></li>
<li><span style="color:blue;">Blue: right guess</span></li>
<li><span style="color:orange;"><span class="i18n" data-lang="orange_wrong"></span></span></li>
<li><span style="color:blue;"><span class="i18n" data-lang="blue_right"></span></span></li>
</ul>
<div class="col-sm-6">
Total of right guesses:
<span class="i18n" data-lang="tot_right"></span>:
<input class="form-control" readonly="readonly" id="guessValueCorrectB" />
</div>
<div class="col-sm-6">
About the last 10 results:
<span class="i18n" data-lang="10_res"></span>:
<input class="form-control" readonly="readonly" id="guessValueCorrect10B" />
</div>
</div>
......@@ -399,7 +398,7 @@
$(".panel-warning > .panel-heading").html("Player A");
var vs = $('input[name=vs]:checked').val();
if (vs === "computer") {
$(".panel-success > .panel-heading").html("Computer");
$(".panel-success > .panel-heading").html($.i18n("game_computeur"));
$(".panel-success button").hide();
playerB = "computer";
$("#computerplayer").show();
......
......@@ -39,5 +39,15 @@
"step3_B_efficiency": "Efficiency",
"step3_B_next_value": "Next value",
"game_info": "Here is a game: you against the machine. Will you be able to deceive it? Or are you predictable?",
"game_config": "Game configuration",
"game_play_against": "Play against",
"game_play_against_computeur": "the computer",
"game_play_against_other_player": "an other player",
"game_play_against_other_player_name": "Name",
"game_play_ok": "Let's go",
"game_restart": "Restart game",
"game_computeur": "Computer",
"fin": "fin"
}
\ No newline at end of file
......@@ -34,11 +34,20 @@
"step3_A_coef_att": "Coefficient d'atténuation",
"step3_A_mask_size": "Taille du masque",
"step3_B_info": "Entrez une suite de 0 et de 1, vous verrez alors les différentes combinaisons considérées par l’algorithme pour prédire le chiffre suivant ainsi que la progression graphique du taux de succès rencontré par l’ordinateur.",
"step3_B_info": "Input a sequence of 0 and 1. You will see which arrangements are considered by the computer to predict the following number as long as the graphic translation of the computer’s successes.",
"step3_B_model": "Modèle",
"step3_B_best_patterns": "Meilleurs patterns",
"step3_B_efficiency": "Efficacité",
"step3_B_next_value": "Valeur suivante",
"game_info": "Un jeu : vous contre la machine. Serez-vous capable de la tromper ? Ou êtes-vous prévisible ?",
"game_config": "Configuration du jeu",
"game_play_against": "Jouer contre",
"game_play_against_computeur": "la machine",
"game_play_against_other_player": "un autre joueur",
"game_play_against_other_player_name": "Nom",
"game_play_ok": "C'est parti ",
"game_restart": "Redémarrer le jeu",
"game_computeur": "Ordinateur",
"fin": "fin"
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment