From a4deed29cc9737894ccaa900aa0b654af6e2b818 Mon Sep 17 00:00:00 2001 From: Isabel C Date: Sat, 9 Aug 2014 20:37:55 -0400 Subject: [PATCH] load textdomain --- woocommerce-show-attributes.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/woocommerce-show-attributes.php b/woocommerce-show-attributes.php index 3f1f296..883cae0 100644 --- a/woocommerce-show-attributes.php +++ b/woocommerce-show-attributes.php @@ -37,10 +37,18 @@ public static function get_instance() { } private function __construct() { + add_action( 'plugins_loaded', 'isa_woo_max_qty_load_textdomain' ); add_action('woocommerce_single_product_summary', array( $this, 'show_attributes' ), 25); add_filter( 'woocommerce_product_tabs', array( $this, 'additional_info_tab' ), 98 ); } + /** + * Load plugin's textdomain + */ + function isa_woo_max_qty_load_textdomain() { + load_plugin_textdomain( 'woocommerce-show-attributes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); + } + /* * Show our custom product attributes above the Add to Cart button. * This does not affect nor include attributes which are used for Variations.