Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Loading plugin textdomain path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tpaksu committed Dec 1, 2017
1 parent e770e3f commit 41c2b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget-boilerplate/plugin.php
Expand Up @@ -195,7 +195,7 @@ public function form( $instance ) {
public function widget_textdomain() {

// TODO be sure to change 'widget-name' to the name of *your* plugin
load_plugin_textdomain( $this->get_widget_slug(), false, plugin_dir_path( __FILE__ ) . 'lang/' );
load_plugin_textdomain( $this->get_widget_slug(), false, dirname( plugin_basename( __FILE__ ) ) . 'lang/' );

} // end widget_textdomain

Expand Down

0 comments on commit 41c2b1a

Please sign in to comment.