Plugin code
This commit is contained in:
parent
8819c70d0e
commit
2fde6edfdc
28 changed files with 6338 additions and 0 deletions
37
includes/class-cklph-wdl-i18n.php
Normal file
37
includes/class-cklph-wdl-i18n.php
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
/**
|
||||
* Define the internationalization functionality.
|
||||
*
|
||||
* Loads and defines the internationalization files for WDL
|
||||
* so that it is ready for translation.
|
||||
*
|
||||
* @link https://chykalophia.com/woocommerce-direct-links
|
||||
* @since 0.1.0
|
||||
* @package Woocommerce_Direct_Links
|
||||
* @subpackage Woocommerce_Direct_Links/includes
|
||||
* @author Joel Sanguenza <joel@chykalophia.com>,
|
||||
* Lord Francis Navarro <francis@chykalophia.com>
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'Cklph_Wdl_i18n' ) ) {
|
||||
|
||||
/**
|
||||
* Internationalization class
|
||||
*/
|
||||
class Cklph_Wdl_I18n {
|
||||
|
||||
/**
|
||||
* Load wdl text domain for translation.
|
||||
*
|
||||
* @since 0.1.0
|
||||
*/
|
||||
public function load_plugin_textdomain() {
|
||||
|
||||
load_plugin_textdomain(
|
||||
'plugin-name',
|
||||
false,
|
||||
dirname( dirname( CKLPH_WDL_BASE ) ) . '/languages/'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue