Merge pull request #623 from GeertDD/missing_js_translation
Made confirmation for removing an attribute translatable
This commit is contained in:
commit
9d48185c4b
|
@ -145,7 +145,8 @@ function woocommerce_admin_scripts() {
|
|||
wp_enqueue_script( 'chosen' );
|
||||
|
||||
$woocommerce_witepanel_params = array(
|
||||
'remove_item_notice' => __("Remove this item? If you have previously reduced this item's stock, or this order was submitted by a customer, will need to manually restore the item's stock.", 'woocommerce'),
|
||||
'remove_item_notice' => __("Remove this item? If you have previously reduced this item's stock, or this order was submitted by a customer, will need to manually restore the item's stock.", 'woocommerce'),
|
||||
'remove_attribute' => __('Remove this attribute?', 'woocommerce'),
|
||||
'calc_totals' => __("Calculate totals based on order items, discount amount, and shipping? Note, you will need to (optionally) calculate tax rows and cart discounts manually.", 'woocommerce'),
|
||||
'calc_line_taxes' => __("Calculate line taxes? This will calculate taxes based on the customers country. If no billing/shipping is set it will use the store base country.", 'woocommerce'),
|
||||
'copy_billing' => __("Copy billing information to shipping information? This will remove any currently entered shipping information.", 'woocommerce'),
|
||||
|
|
|
@ -578,7 +578,7 @@ jQuery( function($){
|
|||
});
|
||||
|
||||
$('button.hide_row').live('click', function(){
|
||||
var answer = confirm("Remove this attribute?")
|
||||
var answer = confirm(woocommerce_writepanel_params.remove_attribute);
|
||||
if (answer){
|
||||
$(this).parent().parent().find('select, input[type=text]').val('');
|
||||
$(this).parent().parent().hide();
|
||||
|
@ -588,7 +588,7 @@ jQuery( function($){
|
|||
});
|
||||
|
||||
$('#attributes_list button.remove_row').live('click', function(){
|
||||
var answer = confirm("Remove this attribute?")
|
||||
var answer = confirm(woocommerce_writepanel_params.remove_attribute);
|
||||
if (answer){
|
||||
$(this).parent().parent().remove();
|
||||
show_attribute_table();
|
||||
|
|
Loading…
Reference in New Issue