Skip to content

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

Open
wojtekn wants to merge 1 commit into
trunkfrom
improve-php-runtime-translator-comments
Open

Clarify PHP runtime translator comments for Native/Sandbox labels#4234
wojtekn wants to merge 1 commit 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

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing e6b8190 vs trunk

app-size

Metric trunk e6b8190 Diff Change
App Size (Mac) 1352.97 MB 1352.97 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk e6b8190 Diff Change
load 1127 ms 1161 ms +34 ms ⚪ 0.0%

site-startup

Metric trunk e6b8190 Diff Change
siteCreation 7511 ms 7734 ms +223 ms 🔴 3.0%
siteStartup 2859 ms 2873 ms +14 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. */

@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

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.

3 participants