Skip to content

Commit

Permalink
Project translation
Browse files Browse the repository at this point in the history
  • Loading branch information
master authored and master committed May 15, 2024
1 parent b82eb3a commit e86ae80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion target/docs/lib/Catch.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</head>
<body>

<h1>Catch</h1>
<h1>キャッチ</h1>

<p>Specifies one or more <a href="../Concepts.htm#statement">statements</a> to execute if a value or error is thrown during execution of a <a href="Try.htm">Try</a> statement.</p>

Expand Down
2 changes: 1 addition & 1 deletion target/docs/lib/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h1>アルファベット順機能インデックス</h1>
<td>キャレット(テキスト挿入点)の現在位置を取得します。</td>
</tr>
<tr>
<td class="larger"><a href="Catch.htm">Catch</a></td>
<td class="larger"><a href="Catch.htm">キャッチ</a></td>
<td>Specifies one or more <a href="../Concepts.htm#statement">statements</a> to execute if a value or error is thrown during execution of a <a href="Try.htm">Try</a> statement.</td>
</tr>
<tr>
Expand Down
10 changes: 5 additions & 5 deletions target/docs/v2-changes.htm
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ <h2 id="toc">目次</h2>
<li><a href="#error-handling">エラー処理</a>
<ul>
<li><a href="#continuable-errors">継続可能なエラー</a></li>
<li><a href="#errorlevel">ErrorLevel</a></li>
<li><a href="#errorlevel">エラーレベル</a></li>
<li><a href="#expressions-1"></a></li>
<li><a href="#functions-1">関数</a></li>
<li><a href="#catch">Catch</a></li>
<li><a href="#catch">キャッチ</a></li>
</ul>
</li>
<li><a href="#keyboard-mouse-hotkeys-and-hotstrings">キーボード、マウス、ホットキー、ホットストリング</a></li>
Expand All @@ -100,7 +100,7 @@ <h3 id="legacy-syntax-removed">レガシーシンタックスの廃止</h3>
<li>すべてのパラメータは式なので、すべてのテキストは「引用」され、カンマをエスケープする必要はありません。現在、一部のディレクティブ(コマンドでも関数でもない)を除いています。</li>
<li>パラメータは括弧の有無にかかわらず同じです。すなわち、戻り値の出力変数は存在しないので、括弧が省略された場合は廃棄されることになります。</li>
<li>通常の変数参照はパーセント記号で囲むことはありません(<a href="lib/_Include.htm">#Include</a><a href="lib/_DllLoad.htm">#DllLoad</a>を除きます)。テキストに変数を含めるには、<a href="Variables.htm#concat">連結</a><a href="lib/Format.htm">Format</a>を使用します。</li>
<li>There is no comma between the function name and parameters, so <code>WinMove(, y)</code> = <code>WinMove , y</code> (x is omitted). わかりやすくするために、スペースまたはタブが必要です。一貫性を保つため、ディレクティブも新しい規約に従っています(ディレクティブ名とパラメータの間にコンマがあってはいけません)。</li>
<li>関数とパラメータの間にコンマがあってはいけません。ただし、xを省略したときは<code>WinMove(, y)</code> = <code>WinMove , y</code>のようになります。わかりやすくするために、スペースまたはタブが必要です。一貫性を保つため、ディレクティブも新しい規約に従っています(ディレクティブ名とパラメータの間にコンマがあってはいけません)。</li>
<li>式を強制するためのパーセント-スペース接頭辞はありません。式中の引用符なしのパーセント記号は、二重参照/動的参照にのみ使用され、奇数個あると構文エラーになります。</li>
<li>メソッド呼び出し文(括弧を省略したメソッド呼び出し)は、<code>MyVar.MyProperty.MyMethod "String to pass"</code> のように、プレーン変数の後にドットで区切られた1つまたは複数の識別子を持つものに限定されます。</li>
</ul>
Expand Down Expand Up @@ -1151,7 +1151,7 @@ <h3 id="continuable-errors">継続可能なエラー</h3>
<li>Exit:コンティニュアスには対応していません。ゼロ以外を返すと、それ以降の処理は停止するが、スレッドは終了します。</li>
<li>ExitApp:これは致命的なエラーです。ゼロ以外を返すと、それ以降の処理は停止するが、スクリプトは終了します。</li>
</ul>
<h3 id="errorlevel">ErrorLevel</h3>
<h3 id="errorlevel">エラーレベル</h3>
<p>ErrorLevelは削除されました。スクリプトはエラーチェックをせずに書かれることが多いので(おそらく通常)、エラーにErrorLevelを設定する方針では、エラーが検出されないことがよくあります。すぐにエラーメッセージが表示されるのは、少し対立的に見えるかもしれませんが、一般的にはより有用です。</p>
<p>ErrorLevelがエラー状態を示すために設定されていた場合、代わりに例外がスローされ、(通常)より有益なエラーメッセージが表示されます。</p>
<p>"Process Exist"などのコマンドで値を返していたものが、単にその値を返す(例:<code>pid := ProcessExist()</code>)か、もっと便利なもの(例:<code>hwnd := GroupActivate(group)</code>)になりました。</p>
Expand Down Expand Up @@ -1203,7 +1203,7 @@ <h3 id="functions-1">関数</h3>
</ul>
<p>以前は検出されなかったいくつかのエラーに対して例外がスローされ、(以前はErrorLevelの設定によって)誤ってエラーとしてマークされていたいくつかの条件が修正されました。</p>
<p>一部のエラーメッセージが変更されました。</p>
<h3 id="catch">Catch</h3>
<h3 id="catch">キャッチ</h3>
<p><a href="lib/Catch.htm">Catch</a>の構文が変更され、特定のエラークラスをキャッチする一方、他のエラークラスはキャッチしない(コールスタックのさらに上の別のCatchに制御を移す、またはエラーを報告してスレッドを終了する)方法が提供されました。これまでは、すべての型のスローされた値をキャッチし、型をチェックして再スローする必要がありました。事例:</p>
<pre><em>; Old (v1には `is` や Error クラスがないため、古い v2.0-a のルールを使ってデモを行う)</em>
try
Expand Down

0 comments on commit e86ae80

Please sign in to comment.