event_tickets_plus_setup_textdomain()
Sets up the textdomain stuff
Source
File: event-tickets-plus.php
function event_tickets_plus_setup_textdomain() {
if ( defined( 'EVENT_TICKETS_PLUS_TEXTDOMAIN_LOADED' ) && EVENT_TICKETS_PLUS_TEXTDOMAIN_LOADED ) {
return;
}
$mopath = trailingslashit( basename( dirname( __FILE__ ) ) ) . 'lang/';
$domain = 'event-tickets-plus';
// If we don't have Common classes load the old fashioned way
if ( ! class_exists( 'Tribe__Main' ) ) {
load_plugin_textdomain( $domain, false, $mopath );
} else {
// This will load `wp-content/languages/plugins` files first
Tribe__Main::instance()->load_text_domain( $domain, $mopath );
}
define( 'EVENT_TICKETS_PLUS_TEXTDOMAIN_LOADED', true );
}