From be4fd24922a5f0e2073fe24e2391629c5fe6a6a8 Mon Sep 17 00:00:00 2001 From: Fredrik Rombach Ekelund Date: Fri, 2 Jan 2026 14:47:43 +0100 Subject: [PATCH 1/2] Minor translation tweaks --- cli/commands/site/status.ts | 10 +++---- cli/commands/site/tests/status.test.ts | 26 +++++++++---------- .../cli/lib/macos-installation-manager.ts | 2 +- .../cli/lib/windows-installation-manager.ts | 2 +- src/modules/sync/components/sync-dialog.tsx | 2 ++ 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/cli/commands/site/status.ts b/cli/commands/site/status.ts index c6000e27ac..d3ed4df631 100644 --- a/cli/commands/site/status.ts +++ b/cli/commands/site/status.ts @@ -36,17 +36,17 @@ export async function runCommand( siteFolder: string, format: 'table' | 'json' ) }[] = [ { key: __( 'Site URL' ), value: new URL( siteUrl ).toString(), type: 'url' }, { - key: __( 'Auto Login URL' ), + key: __( 'Auto-login URL' ), value: autoLoginUrl.toString(), type: 'url', hidden: ! isOnline, }, { key: __( 'Site Path' ), value: sitePath }, { key: __( 'Status' ), value: status }, - { key: __( 'PHP Version' ), value: site.phpVersion }, - { key: __( 'WP Version' ), value: wpVersion }, - { key: __( 'Admin Username' ), value: 'admin' }, - { key: __( 'Admin Password' ), value: site.adminPassword }, + { key: __( 'PHP version' ), value: site.phpVersion }, + { key: __( 'WP version' ), value: wpVersion }, + { key: __( 'Admin username' ), value: 'admin' }, + { key: __( 'Admin password' ), value: site.adminPassword }, ].filter( ( { value, hidden } ) => value && ! hidden ); if ( format === 'table' ) { diff --git a/cli/commands/site/tests/status.test.ts b/cli/commands/site/tests/status.test.ts index 32334bfd46..cbba0548c9 100644 --- a/cli/commands/site/tests/status.test.ts +++ b/cli/commands/site/tests/status.test.ts @@ -81,10 +81,10 @@ describe( 'CLI: studio site status', () => { 'Site URL': 'http://localhost:8080/', 'Site Path': '/path/to/site', Status: '🔴 Offline', - 'PHP Version': '8.0', - 'WP Version': '6.4', - 'Admin Username': 'admin', - 'Admin Password': 'password123', + 'PHP version': '8.0', + 'WP version': '6.4', + 'Admin username': 'admin', + 'Admin password': 'password123', }, null, 2 @@ -107,13 +107,13 @@ describe( 'CLI: studio site status', () => { JSON.stringify( { 'Site URL': 'http://localhost:8080/', - 'Auto Login URL': 'http://localhost:8080/studio-auto-login?redirect_to=%2Fwp-admin%2F', + 'Auto-login URL': 'http://localhost:8080/studio-auto-login?redirect_to=%2Fwp-admin%2F', 'Site Path': '/path/to/site', Status: '🟢 Online', - 'PHP Version': '8.0', - 'WP Version': '6.4', - 'Admin Username': 'admin', - 'Admin Password': 'password123', + 'PHP version': '8.0', + 'WP version': '6.4', + 'Admin username': 'admin', + 'Admin password': 'password123', }, null, 2 @@ -154,10 +154,10 @@ describe( 'CLI: studio site status', () => { 'Site URL': 'http://localhost:8080/', 'Site Path': '/path/to/site', Status: '🔴 Offline', - 'PHP Version': undefined, - 'WP Version': '6.4', - 'Admin Username': 'admin', - 'Admin Password': undefined, + 'PHP version': undefined, + 'WP version': '6.4', + 'Admin username': 'admin', + 'Admin password': undefined, }, null, 2 diff --git a/src/modules/cli/lib/macos-installation-manager.ts b/src/modules/cli/lib/macos-installation-manager.ts index 18ff077722..2cca3adf6c 100644 --- a/src/modules/cli/lib/macos-installation-manager.ts +++ b/src/modules/cli/lib/macos-installation-manager.ts @@ -101,7 +101,7 @@ export class MacOSCliInstallationManager implements StudioCliInstallationManager const mainWindow = await getMainWindow(); await dialog.showMessageBox( mainWindow, { type: 'info', - title: __( 'CLI Uninstalled' ), + title: __( 'CLI uninstalled' ), message: __( 'The CLI has been uninstalled successfully.' ), } ); } catch ( error ) { diff --git a/src/modules/cli/lib/windows-installation-manager.ts b/src/modules/cli/lib/windows-installation-manager.ts index 2620a8da0e..5ebcdeaa94 100644 --- a/src/modules/cli/lib/windows-installation-manager.ts +++ b/src/modules/cli/lib/windows-installation-manager.ts @@ -93,7 +93,7 @@ export class WindowsCliInstallationManager implements StudioCliInstallationManag const mainWindow = await getMainWindow(); await dialog.showMessageBox( mainWindow, { type: 'info', - title: __( 'CLI Uninstalled' ), + title: __( 'CLI uninstalled' ), message: __( 'The CLI has been uninstalled successfully.' ), } ); } catch ( error ) { diff --git a/src/modules/sync/components/sync-dialog.tsx b/src/modules/sync/components/sync-dialog.tsx index c6d8d9c907..78c50e7461 100644 --- a/src/modules/sync/components/sync-dialog.tsx +++ b/src/modules/sync/components/sync-dialog.tsx @@ -395,6 +395,8 @@ export function SyncDialog( { showLabels valueLabel={ formattedSize } limitLabel={ formattedLimit } + // translators: %s is a filesize string. This label is displayed if a sync archive is larger + // than a given limit. overLimitLabel={ sprintf( __( '%s over' ), formattedOverAmount ) } /> From 040e0ec1eeaca6349d846892e6d364b6d42bf3f7 Mon Sep 17 00:00:00 2001 From: Fredrik Rombach Ekelund Date: Tue, 6 Jan 2026 12:18:54 +0100 Subject: [PATCH 2/2] Tweak comment --- src/modules/sync/components/sync-dialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sync/components/sync-dialog.tsx b/src/modules/sync/components/sync-dialog.tsx index 78c50e7461..2851badb6c 100644 --- a/src/modules/sync/components/sync-dialog.tsx +++ b/src/modules/sync/components/sync-dialog.tsx @@ -395,8 +395,8 @@ export function SyncDialog( { showLabels valueLabel={ formattedSize } limitLabel={ formattedLimit } - // translators: %s is a filesize string. This label is displayed if a sync archive is larger - // than a given limit. + // translators: %s is a filesize string, e.g. "1.3GB". This label is displayed if a sync + // archive is larger than a given limit. overLimitLabel={ sprintf( __( '%s over' ), formattedOverAmount ) } />