diff --git a/docs/labs/README.md b/docs/labs/README.md index c4d6aa73..a37ef994 100644 --- a/docs/labs/README.md +++ b/docs/labs/README.md @@ -15,7 +15,7 @@ how to do that and the labs we'd like created. Here are some of the labs available, which you can use as examples: -* [hello](hello.html) - simple "Hello, world!" demo. [ja_hello](ja_hello.html) +* [hello](hello.html) - simple "Hello, world!" demo. ([ja_hello](ja_hello.html), [fr_hello](fr_hello.html)) * [input1](input1.html) - input validation (simple types) * [regex0](regex0.html) - regular expressions (regexes) - introduction * [regex1](regex1.html) - regular expressions (regexes) diff --git a/docs/labs/checker.js b/docs/labs/checker.js index 98d120d6..a70e555e 100644 --- a/docs/labs/checker.js +++ b/docs/labs/checker.js @@ -40,7 +40,7 @@ const resources = { reset_title: 'Reset initial state (throwing away current attempt).', to_be_completed: 'to be completed', try_harder: "Try harder! Don't give up so soon. Current time spent (in seconds): {0}", - } + }, }, ja: { translation: { @@ -57,9 +57,26 @@ const resources = { reset_title: '初期状態をリセットします (現在の試行を破棄します)。', to_be_completed: '完成する', try_harder: '「もっと頑張ってください! すぐに諦めないでください。現在の所要時間 (秒): {0}」', - } + }, }, -} + fr: { + translation: { + already_correct: 'La réponse est déjà correcte !', + complete: 'COMPLET !', + completed: 'Terminé', + congrats: 'Félicitations ! Votre réponse est correcte !', + congrats_all: 'Excellent travail ! Toutes vos réponses sont correctes !', + expecting: "Nous attendions une réponse comme celle-ci :\n{0}", + give_up_title: 'Abandonnez et montrez une réponse.', + hint_title: 'Fournir un indice compte tenu de la tentative en cours.', + no_hints: "Désolé, il n'y a aucun indice pour cet atelier.", + no_matching_hint: "Désolé, je ne trouve pas d'indice correspondant à votre tentative.", + reset_title: "Réinitialiser l'état initial (abandonner la tentative actuelle).", + to_be_completed: 'à compléter', + try_harder: "Essayez plus fort ! N'abandonnez pas si tôt. Temps actuel passé (en secondes) : {0}", + }, + }, +}; // Create a "format" method to simplify internationalization. // Use as: "Demo {0} result"".format(name); diff --git a/docs/labs/fr_hello.html b/docs/labs/fr_hello.html new file mode 100644 index 00000000..c1677dcc --- /dev/null +++ b/docs/labs/fr_hello.html @@ -0,0 +1,83 @@ + + +
+ + + + + + + + + + + + ++
+Apprenez à utiliser nos laboratoires en écrivant un message « Hello, world ! » programme. + +
+
+ "Hello, World! " programme +est souvent le premier programme écrit en +un nouveau langage ou système de programmation. +Nous en rédigerons un afin de voir comment fonctionnent ces laboratoires. + +
+
+ +
+Votre tâche est de modifier le programme ci-dessous +pour imprimer "Hello, world!" pour savoir comment fonctionnent nos laboratoires. +Veuillez expérimenter avec les boutons ci-dessous intitulés +Indice, Réinitialiser et Abandonner. + +
+Lorsque vous obtenez une réponse correcte, vous verrez une notification contextuelle, le +la couleur d'arrière-plan de la zone de saisie changera et le +Le titre « Laboratoire interactif » changera pour indiquer Terminé !. + +
+
+Veuillez modifier le code ci-dessous pour imprimer "Hello, world!" +(sans compter les citations) +pour JavaScript sur Node.js, tout en apprenant comment fonctionnent nos ateliers. +
+ +
+ +