From b0309275903f417c082b857aa1c5c11a650f313a Mon Sep 17 00:00:00 2001 From: George Stephanis Date: Fri, 7 Aug 2015 11:58:02 -0400 Subject: [PATCH] Extract 'No Rows Selected' string --- assets/js/admin/settings-views-html-settings-tax.js | 2 +- includes/admin/settings/views/html-settings-tax.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/admin/settings-views-html-settings-tax.js b/assets/js/admin/settings-views-html-settings-tax.js index 77a470eb46a..46346bf09a1 100644 --- a/assets/js/admin/settings-views-html-settings-tax.js +++ b/assets/js/admin/settings-views-html-settings-tax.js @@ -27,7 +27,7 @@ jQuery(this).hide(); }); } else { - alert(''); + alert( data.strings.no_rows_selected ); } return false; }); diff --git a/includes/admin/settings/views/html-settings-tax.php b/includes/admin/settings/views/html-settings-tax.php index 974e68c589c..aad30d89eaf 100644 --- a/includes/admin/settings/views/html-settings-tax.php +++ b/includes/admin/settings/views/html-settings-tax.php @@ -46,6 +46,7 @@ wp_localize_script( 'wc-settings-tax', 'htmlSettingsTaxLocalizeScript', array( 'countries' => $countries, 'states' => $states, 'strings' => array( + 'no_rows_selected' => __( 'No row(s) selected', 'woocommerce' ), 'csv_data_cols' => array( __( 'Country Code', 'woocommerce' ), __( 'State Code', 'woocommerce' ),