Skip to content
Snippets Groups Projects
Commit 1a85c964 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Translations loading

parent 62784283
No related branches found
No related tags found
1 merge request!3Merge of devel to master
...@@ -59,9 +59,6 @@ error_log('init'); ...@@ -59,9 +59,6 @@ error_log('init');
* @return void * @return void
*/ */
public function load_plugin_text_domain() { public function load_plugin_text_domain() {
error_log('load');
error_log($this->get_text_domain());
error_log($this->get_namespace());
load_plugin_textdomain( $this->get_text_domain(), false, $this->get_namespace() . '/lang/' ); load_plugin_textdomain( $this->get_text_domain(), false, $this->get_namespace() . '/lang/' );
} }
...@@ -77,7 +74,7 @@ error_log($this->get_namespace()); ...@@ -77,7 +74,7 @@ error_log($this->get_namespace());
add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) );
add_action( 'plugins_loaded', array( $this, 'load_plugin_text_domain' ), 100 ); add_action( 'plugins_loaded', array( $this, 'load_plugin_text_domain' ) );
add_filter( 'plugin_action_links_' . plugin_basename( $this->get_plugin_file_path() ), array( add_filter( 'plugin_action_links_' . plugin_basename( $this->get_plugin_file_path() ), array(
$this, $this,
'links_filter' 'links_filter'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment