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

Fixes #39747. See #37290.

git-svn-id: https://develop.svn.wordpress.org/trunk@40034 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2017-01-31 09:26:52 +00:00
parent a52789b8b9
commit b732afec11
3 changed files with 29 additions and 25 deletions

View File

@@ -637,20 +637,21 @@ function wp_default_scripts( &$scripts ) {
'noPlugins' => __( 'You do not appear to have any plugins available at this time.' ),
'noItemsSelected' => __( 'Please select at least one item to perform this action on.' ),
'updating' => __( 'Updating...' ), // No ellipsis.
'updated' => __( 'Updated!' ),
'pluginUpdated' => _x( 'Updated!', 'plugin' ),
'themeUpdated' => _x( 'Updated!', 'theme' ),
'update' => __( 'Update' ),
'updateNow' => __( 'Update Now' ),
/* translators: %s: Plugin name and version */
'updateNowLabel' => __( 'Update %s now' ),
'pluginUpdateNowLabel' => _x( 'Update %s now', 'plugin' ),
'updateFailedShort' => __( 'Update Failed!' ),
/* translators: %s: Error string for a failed update */
'updateFailed' => __( 'Update Failed: %s' ),
/* translators: %s: Plugin name and version */
'updatingLabel' => __( 'Updating %s...' ), // No ellipsis.
'pluginUpdatingLabel' => _x( 'Updating %s...', 'plugin' ), // No ellipsis.
/* translators: %s: Plugin name and version */
'updatedLabel' => __( '%s updated!' ),
'pluginUpdatedLabel' => _x( '%s updated!', 'plugin' ),
/* translators: %s: Plugin name and version */
'updateFailedLabel' => __( '%s update failed' ),
'pluginUpdateFailedLabel' => _x( '%s update failed', 'plugin' ),
/* translators: Accessibility text */
'updatingMsg' => __( 'Updating... please wait.' ), // No ellipsis.
/* translators: Accessibility text */
@@ -660,9 +661,10 @@ function wp_default_scripts( &$scripts ) {
'beforeunload' => __( 'Updates may not complete if you navigate away from this page.' ),
'installNow' => __( 'Install Now' ),
/* translators: %s: Plugin name */
'installNowLabel' => __( 'Install %s now' ),
'pluginInstallNowLabel' => _x( 'Install %s now', 'plugin' ),
'installing' => __( 'Installing...' ),
'installed' => __( 'Installed!' ),
'pluginInstalled' => _x( 'Installed!', 'plugin' ),
'themeInstalled' => _x( 'Installed!', 'theme' ),
'installFailedShort' => __( 'Install Failed!' ),
/* translators: %s: Error string for a failed installation */
'installFailed' => __( 'Installation failed: %s' ),