This commit is contained in:
Joshua T Flowers 2019-03-15 09:00:48 +08:00 committed by GitHub
parent 6ad9df9e52
commit df5f001140
8 changed files with 9 additions and 9 deletions

View File

@ -72,7 +72,7 @@ export const filters = [
param: 'categories', param: 'categories',
getLabels: getCategoryLabels, getLabels: getCategoryLabels,
labels: { labels: {
helpText: __( 'Select at least two categories to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two categories below to compare', 'woocommerce-admin' ),
placeholder: __( 'Search for categories to compare', 'woocommerce-admin' ), placeholder: __( 'Search for categories to compare', 'woocommerce-admin' ),
title: __( 'Compare Categories', 'woocommerce-admin' ), title: __( 'Compare Categories', 'woocommerce-admin' ),
update: __( 'Compare', 'woocommerce-admin' ), update: __( 'Compare', 'woocommerce-admin' ),

View File

@ -137,7 +137,7 @@ class CategoriesReportTable extends Component {
const { isRequesting, query } = this.props; const { isRequesting, query } = this.props;
const labels = { const labels = {
helpText: __( 'Select at least two categories to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two categories below to compare', 'woocommerce-admin' ),
placeholder: __( 'Search by category name', 'woocommerce-admin' ), placeholder: __( 'Search by category name', 'woocommerce-admin' ),
}; };

View File

@ -66,7 +66,7 @@ export const filters = [
labels: { labels: {
title: __( 'Compare Coupon Codes', 'woocommerce-admin' ), title: __( 'Compare Coupon Codes', 'woocommerce-admin' ),
update: __( 'Compare', 'woocommerce-admin' ), update: __( 'Compare', 'woocommerce-admin' ),
helpText: __( 'Select at least two coupon codes to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two coupon codes below to compare', 'woocommerce-admin' ),
}, },
}, },
}, },

View File

@ -71,7 +71,7 @@ const filterConfig = {
param: 'products', param: 'products',
getLabels: getProductLabels, getLabels: getProductLabels,
labels: { labels: {
helpText: __( 'Select at least two products to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two products below to compare', 'woocommerce-admin' ),
placeholder: __( 'Search for products to compare', 'woocommerce-admin' ), placeholder: __( 'Search for products to compare', 'woocommerce-admin' ),
title: __( 'Compare Products', 'woocommerce-admin' ), title: __( 'Compare Products', 'woocommerce-admin' ),
update: __( 'Compare', 'woocommerce-admin' ), update: __( 'Compare', 'woocommerce-admin' ),
@ -101,7 +101,7 @@ const variationsConfig = {
param: 'variations', param: 'variations',
getLabels: getVariationLabels, getLabels: getVariationLabels,
labels: { labels: {
helpText: __( 'Select at least two variations to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two variations below to compare', 'woocommerce-admin' ),
placeholder: __( 'Search for variations to compare', 'woocommerce-admin' ), placeholder: __( 'Search for variations to compare', 'woocommerce-admin' ),
title: __( 'Compare Variations', 'woocommerce-admin' ), title: __( 'Compare Variations', 'woocommerce-admin' ),
update: __( 'Compare', 'woocommerce-admin' ), update: __( 'Compare', 'woocommerce-admin' ),

View File

@ -164,7 +164,7 @@ export default class VariationsReportTable extends Component {
const { isRequesting, query } = this.props; const { isRequesting, query } = this.props;
const labels = { const labels = {
helpText: __( 'Select at least two variations to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two variations below to compare', 'woocommerce-admin' ),
placeholder: __( 'Search by variation name', 'woocommerce-admin' ), placeholder: __( 'Search by variation name', 'woocommerce-admin' ),
}; };

View File

@ -228,7 +228,7 @@ class ProductsReportTable extends Component {
const { query, isRequesting, baseSearchQuery, hideCompare } = this.props; const { query, isRequesting, baseSearchQuery, hideCompare } = this.props;
const labels = { const labels = {
helpText: __( 'Select at least two products to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two products below to compare', 'woocommerce-admin' ),
placeholder: __( 'Search by product name or SKU', 'woocommerce-admin' ), placeholder: __( 'Search by product name or SKU', 'woocommerce-admin' ),
}; };

View File

@ -62,7 +62,7 @@ export const filters = [
label: getTaxCode( tax ), label: getTaxCode( tax ),
} ) ), } ) ),
labels: { labels: {
helpText: __( 'Select at least two tax codes to compare', 'woocommerce-admin' ), helpText: __( 'Check at least two tax codes below to compare', 'woocommerce-admin' ),
placeholder: __( 'Search for tax codes to compare', 'woocommerce-admin' ), placeholder: __( 'Search for tax codes to compare', 'woocommerce-admin' ),
title: __( 'Compare Tax Codes', 'woocommerce-admin' ), title: __( 'Compare Tax Codes', 'woocommerce-admin' ),
update: __( 'Compare', 'woocommerce-admin' ), update: __( 'Compare', 'woocommerce-admin' ),

View File

@ -290,7 +290,7 @@ class TableCard extends Component {
className="woocommerce-table__compare" className="woocommerce-table__compare"
count={ selectedRows.length } count={ selectedRows.length }
helpText={ helpText={
labels.helpText || __( 'Select at least two items to compare', 'woocommerce-admin' ) labels.helpText || __( 'Check at least two items below to compare', 'woocommerce-admin' )
} }
onClick={ this.onCompare } onClick={ this.onCompare }
> >