* @license http://www.gnu.org/licenses/ GNU General Public License * @link https://duckdev.com/products/404-to-301/ */ class JJ4T3_i18n { /** * Initialize the class. * * @since 3.0.0 * @access private */ public function __construct() { add_action( 'plugins_loaded', array( $this, 'textdomain' ) ); } /** * Load the plugin text domain for translation. * * @since 3.0.0 * @access public */ public function textdomain() { load_plugin_textdomain( '404-to-301', false, JJ4T3_DIR . '/languages/' ); } }