mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2025-04-19 13:45:35 +03:00
changing the name of the lang directory to languages and all references to it
This commit is contained in:
parent
fe371026c4
commit
adc84722d7
4 changed files with 31 additions and 3 deletions
|
@ -67,7 +67,7 @@ class Plugin_Name {
|
|||
|
||||
// Load plugin text domain
|
||||
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
||||
|
||||
|
||||
// Activate plugin when new blog is added
|
||||
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
||||
|
||||
|
@ -227,7 +227,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__ ) ) . '/lang/' );
|
||||
load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/languages' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue