From 54d8750482f9e939bf66ce948d6b8f4b30aad858 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Tue, 5 May 2026 10:43:52 +0300 Subject: [PATCH 1/3] Remove translation wrappers from Boost, Protect, and CRM product names. Product names (Boost, Protect, CRM) should not be translated. Remove _x() and __() wrappers from menu labels and page titles where the product name is the primary content, and add comments explaining this to future contributors. --- projects/plugins/boost/app/admin/class-admin.php | 4 ++-- .../boost/changelog/update-untranslate-product-names | 4 ++++ .../jetpack/_inc/client/at-a-glance/boost/index.jsx | 9 +++------ .../jetpack/_inc/client/at-a-glance/crm/index.jsx | 8 ++------ .../jetpack/changelog/update-untranslate-product-names | 4 ++++ .../protect/changelog/update-untranslate-product-names | 4 ++++ projects/plugins/protect/src/class-jetpack-protect.php | 4 ++-- 7 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 projects/plugins/boost/changelog/update-untranslate-product-names create mode 100644 projects/plugins/jetpack/changelog/update-untranslate-product-names create mode 100644 projects/plugins/protect/changelog/update-untranslate-product-names diff --git a/projects/plugins/boost/app/admin/class-admin.php b/projects/plugins/boost/app/admin/class-admin.php index 384a44b8b583..83df2a221715 100644 --- a/projects/plugins/boost/app/admin/class-admin.php +++ b/projects/plugins/boost/app/admin/class-admin.php @@ -43,13 +43,13 @@ public function handle_admin_menu() { * @since 1.0.0 */ $total_problems = apply_filters( 'jetpack_boost_total_problem_count', 0 ); - $menu_label = _x( 'Boost', 'The Jetpack Boost product name, without the Jetpack prefix', 'jetpack-boost' ); + $menu_label = 'Boost'; // "Boost" is a product name, do not translate. if ( $total_problems ) { $menu_label .= sprintf( ' %d', $total_problems, $total_problems ); } $page_suffix = Admin_Menu::add_menu( - __( 'Jetpack Boost - Settings', 'jetpack-boost' ), + 'Jetpack Boost - Settings', // "Jetpack Boost" is a product name, do not translate. $menu_label, 'manage_options', JETPACK_BOOST_SLUG, diff --git a/projects/plugins/boost/changelog/update-untranslate-product-names b/projects/plugins/boost/changelog/update-untranslate-product-names new file mode 100644 index 000000000000..1d6d638bcca9 --- /dev/null +++ b/projects/plugins/boost/changelog/update-untranslate-product-names @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Boost: Remove translation wrappers from the "Boost" product name. diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/boost/index.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/boost/index.jsx index 039f1b3fd5b9..b7afef670e1b 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/boost/index.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/boost/index.jsx @@ -7,7 +7,7 @@ import { import { BoostScoreBar, getRedirectUrl } from '@automattic/jetpack-components'; import { ExternalLink } from '@wordpress/components'; import { createInterpolateElement } from '@wordpress/element'; -import { __, _x, sprintf } from '@wordpress/i18n'; +import { __, sprintf } from '@wordpress/i18n'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { useCallback, useEffect, useState } from 'react'; @@ -69,11 +69,8 @@ const DashBoost = ( { // Don't show score bars until we know if they already have boost installed and activated, the site is online, and we have the scores. const shouldShowScoreBars = ! hasBoost && ! isSiteOffline && ! fetchingPluginsData && ! isSpeedScoreError; - const pluginName = _x( - 'Boost', - 'The Jetpack Boost product name, without the Jetpack prefix', - 'jetpack' - ); + // "Boost" is a product name, do not translate. + const pluginName = 'Boost'; const setScoresFromCache = () => { setMobileSpeedScore( latestSpeedScores.scores.mobile ); diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/crm/index.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/crm/index.jsx index bf78f38c2ce7..978ddd82914c 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/crm/index.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/crm/index.jsx @@ -1,7 +1,7 @@ import { getRedirectUrl } from '@automattic/jetpack-components'; import { ExternalLink } from '@wordpress/components'; import { createInterpolateElement } from '@wordpress/element'; -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import PropTypes from 'prop-types'; import { Component } from 'react'; import PluginDashItem from 'components/plugin-dash-item'; @@ -19,11 +19,7 @@ class DashCRM extends Component { render() { return ( %d', $total_threats ); } $page_suffix = Admin_Menu::add_menu( - __( 'Jetpack Protect', 'jetpack-protect' ), + 'Jetpack Protect', // "Jetpack Protect" is a product name, do not translate. $menu_label, 'manage_options', 'jetpack-protect', From bed493dc9534acf185938d6310b24bf1926a7f40 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Tue, 5 May 2026 10:59:41 +0300 Subject: [PATCH 2/3] Translate "settings" --- projects/plugins/boost/app/admin/class-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/plugins/boost/app/admin/class-admin.php b/projects/plugins/boost/app/admin/class-admin.php index 83df2a221715..85a944bb3de5 100644 --- a/projects/plugins/boost/app/admin/class-admin.php +++ b/projects/plugins/boost/app/admin/class-admin.php @@ -49,7 +49,7 @@ public function handle_admin_menu() { } $page_suffix = Admin_Menu::add_menu( - 'Jetpack Boost - Settings', // "Jetpack Boost" is a product name, do not translate. + __( 'Jetpack Boost - Settings', 'jetpack-boost' ), $menu_label, 'manage_options', JETPACK_BOOST_SLUG, From 238e3cd2bb3ffdbd9e88512c9b9541b5a8c520c7 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Tue, 5 May 2026 11:05:25 +0300 Subject: [PATCH 3/3] Fix changelog type for Jetpack plugin --- .../plugins/jetpack/changelog/update-untranslate-product-names | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/plugins/jetpack/changelog/update-untranslate-product-names b/projects/plugins/jetpack/changelog/update-untranslate-product-names index ea01e702b1ec..2bb7466e4492 100644 --- a/projects/plugins/jetpack/changelog/update-untranslate-product-names +++ b/projects/plugins/jetpack/changelog/update-untranslate-product-names @@ -1,4 +1,4 @@ Significance: patch -Type: changed +Type: other Remove translation wrappers from "Boost" and "CRM" product names in the at-a-glance dashboard.