48 lines
928 B
PHP
48 lines
928 B
PHP
<?php if ( ! defined('ABSPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Define the internationalization functionality
|
|
*
|
|
* Loads and defines the internationalization files for this plugin
|
|
* so that it is ready for translation.
|
|
*
|
|
* @link https://philsbury.uk
|
|
* @since 1.0.0
|
|
*
|
|
* @package Age_Gate
|
|
* @subpackage Age_Gate/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 Age_Gate
|
|
* @subpackage Age_Gate/includes
|
|
* @author Phil Baker
|
|
*/
|
|
class Age_Gate_i18n {
|
|
|
|
|
|
/**
|
|
* Load the plugin text domain for translation.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function load_plugin_textdomain() {
|
|
|
|
load_plugin_textdomain(
|
|
'age-gate',
|
|
false,
|
|
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|