diff --git a/modules/tax/commerce_tax.i18n.inc b/modules/tax/commerce_tax.i18n.inc index 0e804ed..dab09c9 100644 --- a/modules/tax/commerce_tax.i18n.inc +++ b/modules/tax/commerce_tax.i18n.inc @@ -1,6 +1,11 @@ execute() ->fetchAllAssoc('rule', PDO::FETCH_ASSOC); } -} \ No newline at end of file +} diff --git a/modules/tax/commerce_tax.module b/modules/tax/commerce_tax.module index 3b222be..dc59790 100644 --- a/modules/tax/commerce_tax.module +++ b/modules/tax/commerce_tax.module @@ -77,9 +77,9 @@ function commerce_tax_types() { $tax_types[$name] = array_merge($defaults, $tax_type); if (module_exists('i18n_string')) { - // translate user-defined strings + // Translate user-defined strings. global $language; - $tax_types[$name] = i18n_object('commerce_tax_type', $tax_types[$name])->translate($language->language); + $tax_types[$name] = i18n_object('commerce_tax_type', $tax_types[$name])->translate($language->language, array('sanitize' => FALSE)); } } } @@ -173,11 +173,12 @@ function commerce_tax_rates() { 'calculation_callback' => 'commerce_tax_rate_calculate', 'module' => $module, ); + $tax_rates[$name] = array_merge($defaults, $tax_rate); if (module_exists('i18n_string')) { - // translate user-defined strings + // Translate user-defined strings. global $language; - $tax_rates[$name] = i18n_object('commerce_tax_rate', $tax_rates[$name])->translate($language->language); + $tax_rates[$name] = i18n_object('commerce_tax_rate', $tax_rates[$name])->translate($language->language, array('sanitize' => FALSE)); } } }