diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php index 9a1eb91..4a369c1 100644 --- a/woocommerce-event-press.php +++ b/woocommerce-event-press.php @@ -25,6 +25,12 @@ require_once(dirname(__FILE__) . "/lib/PHPExcel.php"); require_once(dirname(__FILE__) . "/inc/mep_csv_export.php"); require_once(dirname(__FILE__) . "/inc/mep_user_custom_style.php"); +// Language Load +add_action( 'init', 'mep_language_load'); +function mep_language_load(){ + $plugin_dir = basename(dirname(__FILE__))."/languages/"; + load_plugin_textdomain( 'mage-eventpress', false, $plugin_dir ); +} // Class for Linking with Woocommerce with Event Pricing add_action('plugins_loaded', 'mep_load_wc_class');