Skip to content

Clarify PHP runtime translator comments for Native/Sandbox labels - #4234

Merged
wojtekn merged 3 commits into
trunkfrom
improve-php-runtime-translator-comments
Jul 20, 2026
Merged

Clarify PHP runtime translator comments for Native/Sandbox labels#4234
wojtekn merged 3 commits into
trunkfrom
improve-php-runtime-translator-comments

Conversation

@wojtekn

@wojtekn wojtekn commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Related issues

  • Related to a user report that the translated "Native" PHP runtime label reads as confusing without context.

How AI was used in this PR

Used Claude Code to locate every place the "Native"/"Sandbox" runtime labels are exposed to translators and to rewrite the translator comments consistently. The reasoning and final wording were reviewed by a human.

Proposed Changes

The PHP runtime setting offers a choice between "Native" and "Sandbox". I propose updating translator comments to provide more context for those short phrases, to make it easier for translators to learn about the context.

Testing Instructions

  • N/A

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
The Native/Sandbox labels reach translators without indicating they are a paired PHP runtime choice, making it hard to pick wording that reads as the intended contrast. Rewrite the translator comments to state the pairing and what each option does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wpmobilebot

wpmobilebot commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 9c246d6 vs trunk

app-size

Metric trunk 9c246d6 Diff Change
App Size (Mac) 1355.69 MB 1355.69 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk 9c246d6 Diff Change
load 1063 ms 1071 ms +8 ms ⚪ 0.0%

site-startup

Metric trunk 9c246d6 Diff Change
siteCreation 6991 ms 6991 ms 0 ms ⚪ 0.0%
siteStartup 2353 ms 2350 ms 3 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

value={ selectedRuntime }
options={ [
/* translators: As in an application that runs natively on a computer */
/* translators: PHP runtime option, paired with "Sandbox". The compiled PHP binary Studio bundles and runs natively on the machine. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/* translators: PHP runtime option, paired with "Sandbox". The compiled PHP binary Studio bundles and runs natively on the machine. */
/* translators: PHP runtime option, paired with "Sandbox". The compiled PHP binary that Studio bundles and runs natively on the machine. */

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated.

@katinthehatsite katinthehatsite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good, I left one minor comment. The sentence itself is okay but it might be easier to read for non-native speakers who are doing these translations

@wojtekn
wojtekn merged commit a4aa787 into trunk Jul 20, 2026
13 checks passed
@wojtekn
wojtekn deleted the improve-php-runtime-translator-comments branch July 20, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants