/** * Define the locale for this plugin for internationalization. * * Uses the Plugin_Name_i18n class in order to set the domain and to register the hook * with WordPress. * * @since 1.0.0 * @access private */ private function set_locale() { $plugin_i18n = new Plugin_Name_i18n(); $plugin_i18n->set_domain($this->get_plugin_name()); $this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain'); }
/** * Define the locale for this plugin for internationalization. * * Uses the Plugin_Name_i18n class in order to set the domain and to register the hook * with WordPress. * * @since 1.0.0.0 */ private function set_locale() { $plugin_i18n = new Plugin_Name_i18n(); $plugin_i18n->set_domain(Plugin_Name::PLUGIN_ID); Plugin_Name_Actions_Filters::add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain'); }