Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/plugins/boost/app/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ 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( ' <span class="menu-counter count-%d"><span class="count">%d</span></span>', $total_problems, $total_problems );
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Boost: Remove translation wrappers from the "Boost" product name.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 );
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -19,11 +19,7 @@ class DashCRM extends Component {
render() {
return (
<PluginDashItem
pluginName={ _x(
'CRM',
'The Jetpack CRM product name, without the Jetpack prefix',
'jetpack'
) }
pluginName="CRM" /* "CRM" is a product name, do not translate. */
pluginFiles={ CRM_PLUGIN_FILES }
pluginSlug={ CRM_PLUGIN_SLUG }
pluginLink={ this.props.siteAdminUrl + CRM_PLUGIN_DASH }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Remove translation wrappers from "Boost" and "CRM" product names in the at-a-glance dashboard.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Protect: Remove translation wrappers from the "Protect" product name.
4 changes: 2 additions & 2 deletions projects/plugins/protect/src/class-jetpack-protect.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ public function init() {
*/
public function admin_page_init() {
$total_threats = Status::get_total_threats();
$menu_label = _x( 'Protect', 'The Jetpack Protect product name, without the Jetpack prefix', 'jetpack-protect' );
$menu_label = 'Protect'; // "Protect" is a product name, do not translate.
if ( $total_threats ) {
$menu_label .= sprintf( ' <span class="update-plugins">%d</span>', $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',
Expand Down
Loading