Make WordPress Core


Ignore:
Timestamp:
07/13/2016 05:31:15 PM (10 years ago)
Author:
ocean90
Message:

Update/Install: Give context to some install/update strings to allow for differentiation between theme and plugin translations.

Props swissspidy, SergeyBiryukov.
Fixes #37290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r38033 r38057  
    629629                                /* translators: Error string for a failed installation */
    630630                                'installFailed'              => __( 'Installation failed: %s' ),
    631                                 /* translators: Plugin/Theme name and version */
    632                                 'installingLabel'            => __( 'Installing %s...' ), // no ellipsis
    633                                 /* translators: Plugin/Theme name and version */
    634                                 'installedLabel'             => __( '%s installed!' ),
    635                                 /* translators: Plugin/Theme name and version */
    636                                 'installFailedLabel'         => __( '%s installation failed' ),
     631                                /* translators: Plugin name and version */
     632                                'pluginInstallingLabel'      => _x( 'Installing %s...', 'plugin' ), // no ellipsis
     633                                /* translators: Theme name and version */
     634                                'themeInstallingLabel'       => _x( 'Installing %s...', 'theme' ), // no ellipsis
     635                                /* translators: Plugin name and version */
     636                                'pluginInstalledLabel'       => _x( '%s installed!', 'plugin' ),
     637                                /* translators: Theme name and version */
     638                                'themeInstalledLabel'        => _x( '%s installed!', 'theme' ),
     639                                /* translators: Plugin name and version */
     640                                'pluginInstallFailedLabel'   => _x( '%s installation failed', 'plugin' ),
     641                                /* translators: Theme name and version */
     642                                'themeInstallFailedLabel'    => _x( '%s installation failed', 'theme' ),
    637643                                'installingMsg'              => __( 'Installing... please wait.' ),
    638644                                'installedMsg'               => __( 'Installation completed successfully.' ),
    … …  
    650656                                'deleted'                    => __( 'Deleted!' ),
    651657                                'livePreview'                => __( 'Live Preview' ),
     658                                /* translators: %s: Theme name */
    652659                                'activatePlugin'             => is_network_admin() ? __( 'Network Activate' ) : __( 'Activate' ),
    653660                                'activateTheme'              => is_network_admin() ? __( 'Network Enable' ) : __( 'Activate' ),
     661                                /* translators: %s: Plugin name */
     662                                'activatePluginLabel'        => is_network_admin() ? _x( 'Network Activate %s', 'plugin' ) : _x( 'Activate %s', 'plugin' ),
     663                                /* translators: %s: Theme name */
     664                                'activateThemeLabel'         => is_network_admin() ? _x( 'Network Activate %s', 'theme' ) : _x( 'Activate %s', 'theme' ),
    654665                                'activateImporter'           => __( 'Activate importer' ),
    655                                 'unknownError'               => __( 'An unknown error occured' ),
     666                                'unknownError'               => __( 'An unknown error occurred' ),
    656667                                'pluginsFound'               => __( 'Number of plugins found: %d' ),
    657668                                'noPluginsFound'             => __( 'No plugins found. Try a different search.' ),
Note: See TracChangeset for help on using the changeset viewer.