From 24884f9aeef3b2ac32bb98110bdf76b45c60b991 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 8 Mar 2019 20:44:52 +0100 Subject: [PATCH] Seimplify hierarchical term selector strings. (#13938) --- .../hierarchical-term-selector.js | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js b/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js index 419af0dd4f5c96..bc36ab06170587 100644 --- a/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js +++ b/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js @@ -370,21 +370,15 @@ class HierarchicalTermSelector extends Component { const newTermSubmitLabel = newTermButtonLabel; const inputId = `editor-post-taxonomies__hierarchical-terms-input-${ instanceId }`; const filterInputId = `editor-post-taxonomies__hierarchical-terms-filter-${ instanceId }`; - const filterLabel = sprintf( - _x( 'Search %s', 'term' ), - get( - this.props.taxonomy, - [ 'name' ], - slug === 'category' ? __( 'Categories' ) : __( 'Terms' ) - ) + const filterLabel = get( + this.props.taxonomy, + [ 'labels', 'search_items' ], + __( 'Search Terms' ) ); - const groupLabel = sprintf( - _x( 'Available %s', 'term' ), - get( - this.props.taxonomy, - [ 'name' ], - slug === 'category' ? __( 'Categories' ) : __( 'Terms' ) - ) + const groupLabel = get( + this.props.taxonomy, + [ 'name' ], + __( 'Terms' ) ); const showFilter = availableTerms.length >= MIN_TERMS_COUNT_FOR_FILTER;