Made confirmation for removing an attribute translatable

This commit is contained in:
Geert De Deckere 2012-02-12 17:29:32 +01:00
parent af625994ba
commit 3bae87e394
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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();