Commit 44151d82 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

profile edition translation

parent 358d18a6
......@@ -28,7 +28,10 @@ $lang['login'] = 'Log in';
$lang['logout'] = 'Log out';
$lang['user_userlang_maternelle']='native language';
$lang['langue_apprentissage']='Choose a/the languages that you are studying:';
$lang['ajout_langue']='Add a language that you are studying';
$lang['ajout_langue']='Add a studied language';
$lang['retirer_langue'] = "Delete the last language in the list";
$lang['choose_lvl'] = "Choose default game level";
//Menu et boutons de formulaires
$lang['cmd_submit'] = 'Submit';
......@@ -229,6 +232,11 @@ $lang['uploadProb'] = 'The file has not been uploaded yet...';
//
$lang['same_lang'] = ' You have chosen twice the same language in langues parlées';
$lang['spok_lang'] = 'Spoken languages';
$lang['language']="Language";
$lang['proficiency'] = "Proficiency";
$lang['game_lang'] = "Game language";
//Administration cartes
$lang['admin'] = "Administration: Press cross to delete card";
......
......@@ -27,7 +27,9 @@ $lang['user_userlang_interface'] = 'Langue de l\'interface';
$lang['login'] = 'Connexion';
$lang['logout'] = 'Déconnexion';
$lang['langue_apprentissage'] = 'Indiquez la/les langue(s) que vous apprenez:';
$lang['ajout_langue'] = 'ajouter une langue parlée';
$lang['ajout_langue'] = 'Ajouter une langue parlée';
$lang['retirer_langue'] = "Retirer la dernière langue";
$lang['choose_lvl'] = "Choisissez un niveau de jeu";
//Menu et boutons de formulaires
$lang['cmd_submit'] = 'Valider';
......@@ -224,5 +226,11 @@ $lang['uploadProb'] = 'Le fichier n\'a pas été uploadé...';
//
$lang['same_lang'] = 'Vous avez choisi deux fois la même langue dans langues parlées ';
$lang['spok_lang'] = 'Langues parlées';
$lang['language']="Langue";
$lang['proficiency'] = "Niveau";
$lang['game_lang'] = "Langue de jeu";
//Administration cartes
$lang['admin'] = 'Administration : Cliquer sur la croix pour supprimer la carte';
......@@ -48,19 +48,19 @@ include('./controllersJS/display_lang.js');
<dd><input type="password" id="password_confirm" name="password_confirm" value="<?php echo $lang['password_confirm'];?>" /></dd>
</dl>
<dl>
<dt><label for="userlang_spoken" ><?php echo "Langues parlées";?></label></dt>
<dt><label for="userlang_spoken" ><?php echo $lang['spok_lang'] ;?></label></dt>
<dd>
<table id="userlang_spoken">
<tr>
<td width="25%" align="center">Langue</td>
<td width="25%" align="center">Niveau</td>
<td width="50%" align="center">Langue de jeu</td>
<td width="25%" align="center"><?php echo $lang['language']; ?></td>
<td width="25%" align="center"><?php echo $lang['proficiency']; ?></td>
<td width="50%" align="center"><?php echo $lang['game_lang']; ?></td>
</tr>
<?php
$i=1;
$languages = $lang_iso->get_all_codes();
$commonlyUsed = $lang_iso->commonlyUsed;
$levels = ["Débutant", "Intermédiaire", "Avancé", "Natif"];
$levels = ["Débutant" => $lang['level_beg'], "Intermédiaire" => $lang['level_int'], "Avancé" => $lang['level_adv'], "Natif" => $lang['level_nat']];
$spoken_lang = explode(';',$this->spoken_lang);
$niveaux = explode(';',$this->niveau);
......@@ -99,9 +99,9 @@ include('./controllersJS/display_lang.js');
<select <?php echo $levelid;?> name='choix_niveau_<?php echo $i; ?>' required='required'>
<option value=''>--</option>
<?php
foreach($levels as $level){
foreach($levels as $level => $level_display){
$selected = ($n === $level) ? "selected" : "";
echo "<option value='".$level."' ".$selected.">".$level."</option>";
echo "<option value='".$level."' ".$selected.">".$level_display."</option>";
}
?>
......@@ -132,7 +132,7 @@ include('./controllersJS/display_lang.js');
<td><button type="button" id="langueAppriseBtn" onClick="addLanguage();" align="center"><?php echo $lang['ajout_langue'];?></button></td>
</tr>
<tr>
<td><button type="button" id="langueAppriseCancel" onClick="removeLastLanguage();" align="center"><?php echo "Retirer langue";?></button></td>
<td><button type="button" id="langueAppriseCancel" onClick="removeLastLanguage();" align="center"><?php echo $lang['retirer_langue'];?></button></td>
</tr>
</table>
......@@ -140,17 +140,17 @@ include('./controllersJS/display_lang.js');
</dd>
</dl>
<dl>
<dt><label for="userlvl">Choisissez un niveau de jeu</label></dt>
<dt><label for="userlvl"><?php echo $lang['choose_lvl'];?></label></dt>
<dd>
<select id="userlvl" name="userlvl" required='required'>
<option value ="easy" <?php if($this->userlvl == "easy") {
echo "selected='selected'"; } ?> >Facile</option>
echo "selected='selected'"; } ?> ><?php echo $lang['level_easy'];?></option>
<option value ="medium" <?php if($this->userlvl == "medium") {
echo "selected='selected'"; } ?> >Moyen</option>
echo "selected='selected'"; } ?> ><?php echo $lang['level_medium'];?></option>
<option value ="hard" <?php if($this->userlvl == "hard") {
echo "selected='selected'"; } ?> >Difficile</option>
echo "selected='selected'"; } ?> ><?php echo $lang['level_hard'];?></option>
</select>
</dd>
</dl>
......
Supports Markdown
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