doc-en と同期し control-structures のコード例を実行可能な形式に更新(16ファイル)#416
Merged
KentarouTakeda merged 1 commit intoJul 26, 2026
Merged
Conversation
KentarouTakeda
force-pushed
the
sync-control-structures-runnable-examples
branch
from
July 26, 2026 11:04
acdb3b2 to
d02aa8f
Compare
原文の php/doc-en#5462 に追随し、language/control-structures 配下の 16 ファイルを同期しました。 ### コード例の実行可能化(16件) — php/doc-en@b8147b7 - 複数の例を `informalexample` 単位に分割し、`&example.outputs;` + `<screen>` の出力ブロックを追加 - 例中で未定義だった変数の初期化を補い、末尾の `?>` を除去 - 実行対象外の例に `annotations="non-interactive"`、`language/control-structures.xml` の `<chapter>` に `annotations="interactive"` を付与 `<screen>` の内容は、各ファイルの訳文コードが実際に出力する内容に合わせています。コード中の文字列が訳出済みの箇所は日本語、PHP 本体が出力するメッセージは原文のままです。 対象: control-structures.xml, alternative-syntax.xml, break.xml, continue.xml, declare.xml, do-while.xml, else.xml, elseif.xml, for.xml, foreach.xml, goto.xml, if.xml, include.xml, match.xml, switch.xml, while.xml ### 原文側の内容変更の反映(3件) - switch.xml — case のセミコロン構文が PHP 8.5.0 で非推奨になった旨の記述を追加(php/doc-en@b8147b7) - continue.xml — `continue` 後のセミコロン省略に関する段落が原文で削除されたため、対応する訳文を削除(php/doc-en@b8147b7) - else.xml — 原文の綴りの誤りの修正に追随(php/doc-en@690c3ea)。訳文への影響はありません
KentarouTakeda
force-pushed
the
sync-control-structures-runnable-examples
branch
from
July 26, 2026 11:11
d02aa8f to
e49a055
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原文の php/doc-en#5462 に追随し、language/control-structures 配下の 16 ファイルを同期しました。
コード例の実行可能化(16件) — php/doc-en@b8147b7
informalexample単位に分割し、&example.outputs;+<screen>の出力ブロックを追加?>を除去annotations="non-interactive"、language/control-structures.xmlの<chapter>にannotations="interactive"を付与<screen>の内容は、各ファイルの訳文コードが実際に出力する内容に合わせています。コード中の文字列が訳出済みの箇所は日本語、PHP 本体が出力するメッセージは原文のままです。対象: control-structures.xml, alternative-syntax.xml, break.xml, continue.xml,
declare.xml, do-while.xml, else.xml, elseif.xml, for.xml, foreach.xml, goto.xml,
if.xml, include.xml, match.xml, switch.xml, while.xml
原文側の内容変更の反映(3件)
continue後のセミコロン省略に関する段落が原文で削除されたため、対応する訳文を削除(php/doc-en@b8147b7)