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:
parent
e121073eb1
commit
773a3ad9d4
2 changed files with 4 additions and 12 deletions
|
@ -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' )
|
||||
|
|
|
@ -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 ""
|
Loading…
Reference in a new issue