Wordpress/tests/qunit/fixtures/updates.js
Dominik Schilling a02d4c4a16 Update/Install: Replace "error" and "-1" failure messages with a more meaningful one.
* "-1" is an invalid nonce error, show 'An error has occurred. Please reload the page and try again.'.
* "error" means that the connection to the server was lost, show 'Connection lost or the server is busy. Please try again later.'.
* Escape the message in `wp-updates-admin-notice` because the response may include HTML.
* Remove HTML tags in `wp.updates.isValidResponse()` to make PHP's error messages more readable.

Props azaozz for review.
Fixes #37583.

git-svn-id: https://develop.svn.wordpress.org/trunk@38205 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-05 19:27:56 +00:00

59 lines
2.5 KiB
JavaScript

window._wpUpdatesSettings = {
'ajax_nonce': '719b10f05d',
'l10n': {
'searchResults': 'Search results for “%s”',
'searchResultsLabel': 'Search Results',
'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...',
'updated': 'Updated!',
'update': 'Update',
'updateNow': 'Update Now',
'updateFailedShort': 'Update Failed!',
'updateFailed': 'Update Failed: %s',
'updatingLabel': 'Updating %s...',
'updatedLabel': '%s updated!',
'updateFailedLabel': '%s update failed',
'updatingMsg': 'Updating... please wait.',
'updatedMsg': 'Update completed successfully.',
'updateCancel': 'Update canceled.',
'beforeunload': 'Updates may not complete if you navigate away from this page.',
'installNow': 'Install Now',
'installing': 'Installing...',
'installed': 'Installed!',
'installFailedShort': 'Install Failed!',
'installFailed': 'Installation failed: %s',
'pluginInstallingLabel': 'Installing %s...', // No ellipsis
'themeInstallingLabel': 'Installing %s...', // No ellipsis
'pluginInstalledLabel': '%s installed!',
'themeInstalledLabel': '%s installed!',
'pluginInstallFailedLabel': '%s installation failed',
'themeInstallFailedLabel': '%s installation failed',
'installingMsg': 'Installing... please wait.',
'installedMsg': 'Installation completed successfully.',
'importerInstalledMsg': 'Importer installed successfully. <a href="%s">Run importer</a>',
'aysDelete': 'Are you sure you want to delete %s?',
'aysDeleteUninstall': 'Are you sure you want to delete %s and its data?',
'aysBulkDelete': 'Are you sure you want to delete the selected plugins and their data?',
'aysBulkDeleteThemes': 'Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?',
'deleting': 'Deleting...',
'deleteFailed': 'Deletion failed: %s',
'deleted': 'Deleted!',
'livePreview': 'Live Preview',
'activatePlugin': 'Activate',
'activateTheme': 'Activate',
'activatePluginLabel': 'Activate %s',
'activateThemeLabel': 'Activate %s',
'activateImporter': 'Run Importer',
'unknownError': 'An unknown error occurred',
'connectionError': 'Connection lost or the server is busy. Please try again later.',
'nonceError': 'An error has occurred. Please reload the page and try again.',
'pluginsFound': 'Number of plugins found: %d',
'noPluginsFound': 'No plugins found. Try a different search.'
}
};
window._wpUpdatesItemCounts = {
plugins: {},
totals: {}
};