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

Translation issue in notice #781

Open AdamSGit opened 5 years ago

AdamSGit commented 5 years ago

I set up TGM in my theme, and added translations directly from the provided languages dir in TGM. Translations I use are french.

Capture d’écran 2019-07-05 à 16 37 53

As you can see in the capture above, there are two translation issues :

Here is my sample code (took the default)

$plugins = [

    // This is an example of how to include a plugin bundled with a theme.
    [
        'name'               => 'WooCommerce',
        'slug'               => 'woocommerce',
        'source'             => get_template_directory() . '/lib/plugins/woocommerce.3.6.5.zip',
        'required'           => true,
        'version'            => '',
        'force_activation'   => false,
        'force_deactivation' => false,
        'external_url'       => '',
        'is_callable'        => '',
    ],
];

$config = [
    'id'           => 'mytheme',
    'default_path' => '',
    'menu'         => 'tgmpa-install-plugins',
    'has_notices'  => true,
    'dismissable'  => false,
    'dismiss_msg'  => '',
    'is_automatic' => false,
    'message'      => '',
];

Let me know I you need further informations.