<?php
// If this file is called directly, abort.
	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}
	/**
	 * Define the internationalization functionality
	 *
	 * Loads and defines the internationalization files for this plugin
	 * so that it is ready for translation.
	 *
	 * @link       http://www.multidots.com
	 * @since      1.0.0
	 *
	 * @package    Advanced_Flat_Rate_Shipping_For_WooCommerce_Pro
	 * @subpackage Advanced_Flat_Rate_Shipping_For_WooCommerce_Pro/includes
	 */
	
	/**
	 * Define the internationalization functionality.
	 *
	 * Loads and defines the internationalization files for this plugin
	 * so that it is ready for translation.
	 *
	 * @since      1.0.0
	 * @package    Advanced_Flat_Rate_Shipping_For_WooCommerce_Pro
	 * @subpackage Advanced_Flat_Rate_Shipping_For_WooCommerce_Pro/includes
	 * @author     Multidots <inquiry@multidots.in>
	 */
	class Advanced_Flat_Rate_Shipping_For_WooCommerce_Pro_i18n {
		
		/**
		 * The domain specified for this plugin.
		 *
		 * @since    1.0.0
		 * @access   private
		 * @var      string $domain The domain identifier for this plugin.
		 */
		private $domain;
		
		/**
		 * Load the plugin text domain for translation.
		 *
		 * @since    1.0.0
		 */
		public function load_plugin_textdomain() {

			$locale = apply_filters( 'plugin_locale', get_locale(), $this->domain );
			$mofile = $this->domain . '-' . $locale . '.mo';
			$path   = WP_PLUGIN_DIR . '/' . trim( $this->domain . '/languages', '/' );
			load_textdomain( $this->domain, $path . '/' . $mofile );
			$plugin_rel_path = apply_filters( 'advanced_flat_rate_shipping_for_woocommerce_translation_file_rel_path', dirname(dirname(plugin_basename(__FILE__))) . '/languages' );
			load_plugin_textdomain( $this->domain, false, $plugin_rel_path );
            
		}
		
		/**
		 * Set the domain equal to that of the specified domain.
		 *
		 * @param string $domain The domain that represents the locale of this plugin.
		 *
		 * @since    1.0.0
		 */
		public function set_domain( $domain ) {
			$this->domain = $domain;
		}
		
	}