Skip to content

[Sync EN] Fix grammar in control structures (#5750) - #1022

Open
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:sync-en/965-control-structures
Open

[Sync EN] Fix grammar in control structures (#5750)#1022
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:sync-en/965-control-structures

Conversation

@lacatoire

@lacatoire lacatoire commented Aug 19, 2026

Copy link
Copy Markdown
Member

Syncs the Spanish translation with php/doc-en#5750 (commit e674990).

  • include-once.xml, include.xml, match.xml, switch.xml: the touched paragraphs become simpara, as in EN.
  • foreach.xml: the warning now refers to a single reference to the $value of the last element ("destruirla"), and the note about array destructuring ends with a period.
  • switch.xml: the introduction follows the reworded English text (a series of if statements on the same expression; switch is often more convenient and easier to read), and the alternative if-else blocks form a complete sentence.
  • match.xml: "OU lógico" typo fixed to "O lógico", indentation of the UnhandledMatchError paragraph fixed.
  • do-while.xml, elseif.xml, for.xml: English-only grammar fixes, the Spanish text already matched, so only EN-Revision is bumped.
  • EN-Revision updated in the eight files.

Fixes: #965

Also aligns one paragraph of include.xml (functions defined in the included file) with the simpara used in doc-en, which the structure check requires.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] Fix grammar in control structures (#5750)

1 participant