From a224d4b082c9b2f16e0f713cbdc3fb4087d30323 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Fri, 29 Nov 2024 13:20:38 +0200 Subject: [PATCH 1/3] fix: add missing translatable strings --- .../apps/customizer-controls/src/controls.js | 9 +- .../src/customizer-search/SearchResults.tsx | 11 +- .../src/Components/Content/Changelog.js | 4 +- .../dashboard/src/Components/Notification.js | 11 +- .../Core/Builder/Abstract_Builder.php | 10 +- header-footer-grid/Core/Builder/Header.php | 16 +- .../Core/Components/MenuIcon.php | 14 +- .../components/component-footer-sidebar.php | 1 - .../starter-content/theme-mods.php | 264 +++++++++--------- phpcs.xml | 39 +-- 10 files changed, 199 insertions(+), 180 deletions(-) diff --git a/assets/apps/customizer-controls/src/controls.js b/assets/apps/customizer-controls/src/controls.js index 19632184f0..bf70546b41 100644 --- a/assets/apps/customizer-controls/src/controls.js +++ b/assets/apps/customizer-controls/src/controls.js @@ -1,6 +1,7 @@ /* global CustomEvent, NeveReactCustomize, MutationObserver */ import './public-path.js'; import { render } from '@wordpress/element'; +import { __ } from '@wordpress/i18n'; import { init as initDynamicFields } from './dynamic-fields/index'; import { ToggleControl } from './toggle/Control'; @@ -297,8 +298,10 @@ const checkHasElementorTemplates = () => { 'neve-custom-elementor-shop-template', { type: 'warning', - message: + message: __( 'Some of the settings might not work as expected because you are using a custom shop template made in Elementor.', + 'neve' + ), } ) ); @@ -312,8 +315,10 @@ const checkHasElementorTemplates = () => { 'neve-custom-elementor-product-template', { type: 'warning', - message: + message: __( 'Some of the settings might not work as expected because you are using a custom product template made in Elementor.', + 'neve' + ), } ) ); diff --git a/assets/apps/customizer-controls/src/customizer-search/SearchResults.tsx b/assets/apps/customizer-controls/src/customizer-search/SearchResults.tsx index dc2fdde6d0..5f6defe9f3 100644 --- a/assets/apps/customizer-controls/src/customizer-search/SearchResults.tsx +++ b/assets/apps/customizer-controls/src/customizer-search/SearchResults.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Control } from './SearchComponent'; import classnames from 'classnames'; +import { __ } from '@wordpress/i18n'; /** * Type SearchComponentProps @@ -84,7 +85,9 @@ const SearchResults: React.FC = ({ {query !== '' && (