From a7230d11cb08c6b5ea0ce211fc24cdb0d1eaed9f Mon Sep 17 00:00:00 2001 From: Mahesh Bohara Date: Wed, 7 Oct 2026 15:54:05 +0545 Subject: [PATCH] I18N: Make plugin activation aria-labels in `updates.js` translatable. The `%s activated successfully.` and `%s is active.` aria-label strings in `wp.updates.activatePluginSuccess()` had translators comments but were not wrapped in `__()`, so they were never extracted for translation. Follow-up to [57545]. See #66266. --- src/js/_enqueues/wp/updates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js index 59d0ef2e6b1cb..6fb48411c52bd 100644 --- a/src/js/_enqueues/wp/updates.js +++ b/src/js/_enqueues/wp/updates.js @@ -1126,7 +1126,7 @@ buttonText = _x( 'Activated!', 'plugin' ), ariaLabel = sprintf( /* translators: %s: The plugin name. */ - '%s activated successfully.', + __( '%s activated successfully.' ), response.pluginName ); @@ -1165,7 +1165,7 @@ text: _x( 'Active', 'plugin' ), ariaLabel: sprintf( /* translators: %s: The plugin name. */ - '%s is active.', + __( '%s is active.' ), response.pluginName ) }