1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-04-29 09:53:16 +03:00

updating the references to the languages directory as per @grappler's original implementation

This commit is contained in:
Tom McFarlin 2013-10-21 07:30:40 -04:00
parent 37bf5ffb8d
commit 25c4fdcf70

View file

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