diff --git a/plugin-name/class-plugin-name.php b/plugin-name/class-plugin-name.php index eec9b08..325e00b 100644 --- a/plugin-name/class-plugin-name.php +++ b/plugin-name/class-plugin-name.php @@ -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' ); } /** diff --git a/plugin-name/languages/index.php b/plugin-name/languages/index.php new file mode 100644 index 0000000..e71af0e --- /dev/null +++ b/plugin-name/languages/index.php @@ -0,0 +1 @@ +\n" +"Language-Team: LANGUAGE \n" +"X-Generator: Poedit 1.5.5\n" +"X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;" +"esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n" +"X-Poedit-Basepath: ../\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Poedit-SearchPath-0: .\n" + +#: class-plugin-name.php:214 +msgid "Page Title" +msgstr "" + +#: class-plugin-name.php:215 +msgid "Menu Text" +msgstr "" \ No newline at end of file diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index 8b0e73b..498b300 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -21,7 +21,7 @@ * Text Domain: plugin-name-locale * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt - * Domain Path: /lang + * Domain Path: /languages */ // If this file is called directly, abort.