<?php
|
|
|
|
/**
|
|
* 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 Test
|
|
* @subpackage Test/includes
|
|
* @author test <test>
|
|
*/
|
|
|
|
if (!defined('ABSPATH')) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
class Test_i18n
|
|
{
|
|
/**
|
|
* Load the plugin text domain for translation.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function load_plugin_textdomain()
|
|
{
|
|
load_plugin_textdomain(
|
|
'test',
|
|
false,
|
|
dirname(dirname(plugin_basename(__FILE__))).'/languages/'
|
|
);
|
|
}
|
|
}
|