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

Replace text-domain with variable and update pot

This commit is contained in:
Ulrich Pogson 2013-05-16 23:18:27 +02:00
parent e121073eb1
commit 773a3ad9d4
2 changed files with 4 additions and 12 deletions

View file

@ -211,8 +211,8 @@ class PluginName {
* Change 'plugin-name' to the name of your plugin
*/
$this->plugin_screen_hook_suffix = add_plugins_page(
__('Page Title', 'plugin-name'),
__('Menu Text', 'plugin-name'),
__( 'Page Title', $plugin_slug ),
__( 'Menu Text', $plugin_slug ),
'read',
$this->plugin_slug,
array( $this, 'display_plugin_admin_page' )

View file

@ -18,18 +18,10 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-SearchPath-0: .\n"
#: plugin-name.php:273
#: class-plugin-name.php:214
msgid "Page Title"
msgstr ""
#: plugin-name.php:274
#: class-plugin-name.php:215
msgid "Menu Text"
msgstr ""
#: plugin-name.php:275
msgid "read"
msgstr ""
#: plugin-name.php:276
msgid "plugin-name"
msgstr ""