Fix translations issues. see #20.

This commit is contained in:
Nathan Rice
2017-03-06 11:36:53 -05:00
parent 1509276708
commit 7d10d3c408
+3 -2
View File
@@ -76,7 +76,8 @@ class Genesis_Simple_Sidebars {
add_action( 'admin_notices', array( $this, 'requirements_notice' ) ); add_action( 'admin_notices', array( $this, 'requirements_notice' ) );
$this->load_plugin_textdomain(); add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
$this->includes(); $this->includes();
$this->instantiate(); $this->instantiate();
@@ -104,7 +105,7 @@ class Genesis_Simple_Sidebars {
* @since 2.1.0 * @since 2.1.0
*/ */
public function load_plugin_textdomain() { public function load_plugin_textdomain() {
load_plugin_textdomain( $this->plugin_textdomain, false, $this->plugin_dir_path . 'languages/' ); load_plugin_textdomain( $this->plugin_textdomain, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
} }
/** /**