Extract 'No Rows Selected' string

This commit is contained in:
George Stephanis 2015-08-07 11:58:02 -04:00
parent bd30def6a1
commit b030927590
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@
jQuery(this).hide();
});
} else {
alert('<?php echo esc_js( __( 'No row(s) selected', 'woocommerce' ) ); ?>');
alert( data.strings.no_rows_selected );
}
return false;
});

View File

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