Text changes

This commit is contained in:
Mike Jolley 2016-01-13 12:38:31 +00:00
parent 6a8819fc23
commit c8025705c1
3 changed files with 4 additions and 3 deletions

View File

@ -127,7 +127,7 @@
$method_list.append( '<li><a href="admin.php?page=wc-settings&amp;tab=shipping&amp;instance_id=' + instance_id + '" class="' + class_name + '">' + shipping_method.title + '</a></li>' );
} );
} else {
$method_list.append( '<li>&ndash;</li>' );
$method_list.append( '<li>' + data.strings.no_methods + '</li>' );
}
// Editing?

File diff suppressed because one or more lines are too long

View File

@ -232,7 +232,8 @@ class WC_Settings_Shipping extends WC_Settings_Page {
'wc_shipping_zones_nonce' => wp_create_nonce( 'wc_shipping_zones_nonce' ),
'strings' => array(
'unload_confirmation_msg' => __( 'Your changed data will be lost if you leave this page without saving.', 'woocommerce' ),
'save_failed' => __( 'Your changes were not saved. Please retry.', 'woocommerce' )
'save_failed' => __( 'Your changes were not saved. Please retry.', 'woocommerce' ),
'no_methods' => __( 'No Shipping Methods defined.', 'woocommerce' ) . ' <a href="" class="add_shipping_method">' . __( 'Add one?', 'woocommerce' ) . '</a>'
),
) );
wp_enqueue_script( 'wc-shipping-zones' );