Skip to content

Miscellaneous translation tweaks#2388

Merged
fredrikekelund merged 3 commits intodev/studio-cli-i2from
f26d/cli-i2-translation-fixes
Jan 14, 2026
Merged

Miscellaneous translation tweaks#2388
fredrikekelund merged 3 commits intodev/studio-cli-i2from
f26d/cli-i2-translation-fixes

Conversation

@fredrikekelund
Copy link
Contributor

@fredrikekelund fredrikekelund commented Jan 13, 2026

Related issues

  • Related to p1768209426233719/1767093925.737899-slack-C06DRMD6VPZ
  • Fixes STU-1206

Proposed Changes

As noted by @wojtekn, the newfangled CLI code has some inconsistencies in the translation strings. This PR addresses the following things:

  • When saying that we're starting/stopping a Playground instance, say "WordPress server" instead of "WordPress site"
  • Say "directory" instead of "folder"
  • Don't use the phrase "Studio Desktop"
  • Use the phrase "site" instead of "local site"
  • A couple of one-off edits
  • Capitalize "Blueprint" where applicable

Testing Instructions

Code review should suffice

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@fredrikekelund fredrikekelund requested a review from a team January 13, 2026 16:18
@fredrikekelund fredrikekelund self-assigned this Jan 13, 2026
@fredrikekelund fredrikekelund marked this pull request as ready for review January 14, 2026 08:41
const port = await portFinder.getOpenPort();
logger.reportSuccess( __( 'Port assigned: ' ) + port );
// translators: %d is the port number
logger.reportSuccess( sprintf( __( 'Port assigned: %d' ), port ) );
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

</div>
</SettingsRow>
<SettingsRow label={ __( 'Local URL' ) }>
<SettingsRow label={ __( 'Site URL' ) }>
Copy link
Contributor

Choose a reason for hiding this comment

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

At first, I thought Local URL would be better in this particular context, but after looking at the Settings tab, it's clear when we say Site URL just after Site name there.

__( 'Enable the %s command in the terminal.' ),
'<code>studio</code>'
__( 'Enable the <code>%s</code> command in the terminal.' ),
'studio'
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we plan to substitute other command names?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean if we plan to substitute studio for something else? No. Still, I think it adds robustness to keep the command name outside the translation string, as it's not subject to translation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I meant if we are going to make it dynamic and support different values.

@wojtekn
Copy link
Contributor

wojtekn commented Jan 14, 2026

Thanks for addressing those, and for improving other areas, too. Looks much more consistent now.

Copy link
Contributor

@katinthehatsite katinthehatsite left a comment

Choose a reason for hiding this comment

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

The changes look good to me 👍

throw new LoggerError(
__(
'SQLite integration files not found. Please ensure Studio Desktop is installed and has been run at least once.'
'SQLite integration files not found. Please ensure Studio is installed and has been run at least once.'
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if the name should be WordPress Studio Desktop vs. Studio since it is how we generally refer to the app. Not a big deal though, can leave as is 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

It's good to refer to Studio as a short name in the interface, docs, etc.

@fredrikekelund fredrikekelund merged commit ee061a3 into dev/studio-cli-i2 Jan 14, 2026
4 of 5 checks passed
@fredrikekelund fredrikekelund deleted the f26d/cli-i2-translation-fixes branch January 14, 2026 12:20
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