1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 11:53:53 +02:00

Merge pull request #128 from grappler/patch-1

Add load_plugin_textdomain
This commit is contained in:
Tom McFarlin 2014-01-26 06:38:17 -08:00
commit 87a5d4e5e1

View file

@ -257,6 +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( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
}