TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.75k stars 431 forks source link

Change "required plugins" notice wording for plugins #710

Closed dmhendricks closed 6 years ago

dmhendricks commented 6 years ago

Is there a way to change the "This theme requires the following plugin:" wording to "This plugin requires the following plugin:" or "This plugin has the following dependencies:"?

I use TGMPA in some of my plugins to prompt to install other dependent plugins (as an example, Kirki), and it is sort of a misnomer. However, it is extremely convenient to use.

If not, I suppose that this is a feature request. Thank you.

Plugin Dependency Notice

dmhendricks commented 6 years ago

Apologies, I found the answer. Sorry!

'strings'      => array(
    'notice_can_install_required' => _n_noop(
        'This plugin has the following dependency: %1$s.',
        'This plugin has the following dependencies: %1$s.',
        'my-text-domain'
    ),
)