File: /home/adltc/public_html/wp-content/plugins/dynamicconditions/Lib/I18n.php
<?php
namespace DynamicConditions\Lib;
/**
* Define the internationalization functionality
*
* Loads and defines the internationalization files for this plugin
* so that it is ready for translation.
*
* @link https://www.rto.de
* @since 1.0.0
*
* @package DynamicConditions
* @subpackage DynamicConditions/includes
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
/**
* 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 DynamicConditions
* @subpackage DynamicConditions/includes
* @author RTO GmbH <kundenhomepage@rto.de>
*/
class 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 loadPluginTextdomain() {
load_plugin_textdomain(
$this->domain,
false,
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
);
}
/**
* Set the domain equal to that of the specified domain.
*
* @since 1.0.0
* @param string $domain The domain that represents the locale of this plugin.
*/
public function setDomain( $domain ) {
$this->domain = $domain;
}
}