Skip to content

Commit

Permalink
Merge pull request #787 from ninan27/translate-hello
Browse files Browse the repository at this point in the history
Translate "Lab Exercise hello" into Japanese
  • Loading branch information
david-a-wheeler authored Feb 10, 2025
2 parents bb1a408 + 30ec08d commit 3c2baf3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 32 deletions.
14 changes: 7 additions & 7 deletions docs/labs/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ info =
{
present: "Goodbye",
text: "You need to change the text Goodbye to something else.",
text_ja: "「Goodbye」というテキストを別の文字に変更する必要があります.",
text_ja: "Goodbyeというテキストを別の文字に変更する必要があります。",
text_fr: "Vous devez remplacer le texte Goodbye par autre chose.",
examples: [ [ "console.log(\"Goodbye.\");" ] ]
},
{
present: "hello",
text: "Please capitalize Hello.",
text_ja: "Hello は大文字で入力してください。.",
text_ja: "Hello は大文字で入力してください。",
text_fr: "Veuillez mettre une majuscule Hello.",
examples: [ [ "console.log(\"hello.\");" ] ]
},
Expand All @@ -36,22 +36,22 @@ info =
{
present: "Hello[^,]",
text: "Put a comma immediately after Hello.",
text_ja: "Hello の直後にカンマを入れます",
text_ja: "Hello の直後にカンマを入れてください。",
text_fr: "Mettez une virgule immédiatement après Hello.",
examples: [ [ "console.log(\"Hello world.\");" ] ]
},
{
present: "Hello",
absent: "[Ww]orld",
text: "There's a Hello, but you need to also mention the world.",
text_ja: "「Hello」がありますが、「world」という単語にも言及する必要があります。",
text_ja: "Helloがありますが、worldという単語も必要です。",
text_fr: "Il y a un Hello, mais il faut aussi mentionner le world.",
examples: [ [ "console.log(\"Hello, \");" ] ]
},
{
present: String.raw`world[^\!]`,
text: "Put an exclamation point immediately after world.",
text_ja: "world の直後に感嘆符を置きます。",
text_ja: "world の直後に感嘆符を置いてください。",
text_fr: "Mettez un point d'exclamation immédiatement après world.",
examples: [ [ "console.log(\"Hello, world.\");" ] ]
},
Expand All @@ -66,14 +66,14 @@ info =
{
present: String.raw`^ console \. log \( Hello`,
text: "You must quote constant strings using \", ', or `",
text_ja: "定数文字列は \"、'、または ` を使用して引用符で囲む必要があります。",
text_ja: "文字列定数は \"、'、または ` を使用して引用符で囲む必要があります。",
text_fr: "Vous devez citer les chaînes constantes en utilisant \", ' ou `",
examples: [ [ "console.log(Hello, world" ], [ "console.log( Hello, world" ] ]
},
{
absent: String.raw` ; $`,
text: "Please end this statement with a semicolon. JavaScript does not require a semicolon in this case, but usually when modifying source code you should follow the style of the current code.",
text_ja: "このステートメントはセミコロンで終了してください。この場合、JavaScript ではセミコロンは必要ありませんが、通常、ソース コードを変更する場合は、現在のコードのスタイルに従う必要があります。",
text_ja: "このステートメントはセミコロンで終了してください。JavaScript ではセミコロンは必要ありませんが、通常、ソースコードを変更する場合は、現在のコードのスタイルに従う必要があります。",
text_fr: "Veuillez terminer cette déclaration par un point-virgule. JavaScript ne nécessite pas de point-virgule dans ce cas, mais généralement lors de la modification du code source, vous devez suivre le style du code actuel",
examples: [ [ " console.log(\"Hello, world!\") " ] ]
},
Expand Down
44 changes: 19 additions & 25 deletions docs/labs/ja_hello.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,48 +14,42 @@
<body>
<!-- For GitHub Pages formatting: -->
<div class="container-lg px-3 my-5 markdown-body">
<h1>ラボ演習hello</h1>
<h1>ラボ演習 hello</h1>
<p>
これは安全なソフトウェアの開発に関するラボ演習です。
詳細については、<a href="introduction.html" target="_blank">概要を参照してください。
研究所</a>です。
これはセキュアなソフトウェア開発に関するラボ演習です。
ラボの詳細については、<a href="introduction.html" target="_blank">概要</a>をご覧ください。

<p>
<h2>ゴール</h2>
<p>
<b>Hello, world!」と書いてラボの使い方を学びましょう。プログラム</b>
<b>"Hello, world!" と書くプログラムでラボの使い方を学びましょう。</b>

<p>
<h2>背景</h2>
<p>
<a href="https://en.wikipedia.org/wiki/%22Hello,_World!%22_program"
>「ハロー、ワールド!」プログラム</a>
多くの場合、最初に書かれたプログラムは
新しいプログラミング言語またはシステム。
これらのラボがどのように機能するかを確認できるように、ラボを作成します。
<a href="https://en.wikipedia.org/wiki/%22Hello,_World!%22_program">"Hello, world!"</a>は、
新しいプログラミング言語やシステムで最初に書かれるプログラムです。
ラボの仕組みを理解するために、このプログラムを書きましょう。

<p>
<h2>タスク情報</h2>
<h2>タスク</h2>
<p>

<p>
あなたのタスクは以下のプログラムを変更することです
「Hello, world!」を印刷するには私たちのラボがどのように機能するかを学ぶために。
以下のラベルが付いたボタンを試してください
<i>ヒント</i><i>リセット</i><i>諦め</i>
あなたのタスクは以下のプログラムを変更して"Hello, world!" と表示させ、このラボの機能を学ぶことです。
下にある<i>ヒント</i><i>リセット</i><i>諦める</i>というボタンも試してみてください。

<p>
正解すると、ポップアップ通知が表示されます
入力ボックスの背景色が変わり、
「インタラクティブ ラボ」の見出しが<i>完了!</i>」に変わります。
正解するとポップアップ通知が表示されます
また、入力ボックスの背景色が変わり、
Interactive Labの横の見出しが<i>完了</i>」に変わります。

<p>
<h2>インタラクティブラボ (<span id="grade"></span>)</h2>
<h2>Interactive Lab (<span id="grade"></span>)</h2>
<p>
<b>「Hello, World!」を出力するには、以下のコードを変更してください。
(引用符は含まれません)
Node.js 上の JavaScript について学びながら、 ラボの仕組みも学びましょう</b>
<b>"Hello, world!"(引用符("")を含まない)を表示するように、以下のコードを修正してください。
Node.js上のJavaScriptについて学びながら、ラボの仕組みを学びましょう。
</b>

<p>
<!--
You can use this an example for new labs.
Expand All @@ -69,7 +63,7 @@ <h2>インタラクティブラボ (<span id="grade"></span>)</h2>
</code></pre>
<button type="button" class="hintButton">ヒント</button>
<button type="button" class="resetButton">リセット</button>
<button type="button" class="giveUpButton">あきらめる</button>
<button type="button" class="giveUpButton">諦める</button>
<br><br>
<p>
<i>このラボは、David A. Wheeler によって開発されました。
Expand Down

0 comments on commit 3c2baf3

Please sign in to comment.