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' ),