Make United States label in JS translatable. Closes #1168

This commit is contained in:
Coen Jacobs 2012-06-20 19:50:54 +02:00
parent dd7fde369d
commit a3cf7743bf
2 changed files with 3 additions and 1 deletions

View File

@ -185,7 +185,7 @@ function woocommerce_tax_rates_setting() {
});
jQuery('tr.tax_rate .select_us_states').live('click', function(){
jQuery(this).closest('td').find('select optgroup[label="United States"] option').attr("selected","selected");
jQuery(this).closest('td').find('select optgroup[label="<?php echo __( 'United States', 'woocommerce' ); ?>"] option').attr("selected","selected");
jQuery(this).closest('td').find('select.tax_chosen_select').trigger("change");
return false;
});

View File

@ -171,6 +171,8 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - strpos warning in shipping class
* Fix - $query instead of $q in query class
* Fix - Visibility setting for products in widgets
* Fix - Allow translating of # in order numbers
* Fix - Make United States label in JS translatable, as it might change
= 1.5.7.1 - 14/06/2012 =
* Fix - Saving Mijireh settings bug