From 20e166ee6dd5733e4528e877cc28743dc4c900d7 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 18 Feb 2019 22:08:17 +0100 Subject: [PATCH] Seimplify hierarchical term selector strings. --- .../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;