mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
Fix textdomain not loading
Before: public/languages After: plugin-name/languages
This commit is contained in:
parent
4a1c334c04
commit
7dbfeb95bd
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ class Plugin_Name {
|
|||
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
||||
|
||||
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
||||
load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
|
||||
load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
|
||||
|
||||
}
|
||||
|
||||
|
@ -305,4 +305,4 @@ class Plugin_Name {
|
|||
// TODO: Define your filter hook callback here
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue