Exemple #1
0
 /**
  * Define the locale for this plugin for internationalization.
  *
  * Uses the 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()
 {
     $i18n = new I18n();
     $i18n->set_domain($this->get_name());
     $i18n->load_plugin_textdomain();
 }
Exemple #2
0
 private function set_locale()
 {
     $plugin_i18n = new I18n();
     $plugin_i18n->set_domain($this->get_plugin_name());
     $this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain');
 }