I18N: Merge similar strings about allowed space allocation in Multisite.
Props ramiy, Jonathandejong, pento. Fixes #42223. Built from https://develop.svn.wordpress.org/trunk@45082 git-svn-id: http://core.svn.wordpress.org/trunk@44891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
76e6cc67c2
commit
2f5b5baa07
|
@ -2898,7 +2898,11 @@ function media_upload_max_image_resize() {
|
|||
* @since 3.5.0
|
||||
*/
|
||||
function multisite_over_quota_message() {
|
||||
echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>';
|
||||
echo '<p>' . sprintf(
|
||||
/* translators: %s: allowed space allocation */
|
||||
__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
|
||||
size_format( get_space_allowed() * MB_IN_BYTES )
|
||||
) . '</p>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,8 +29,13 @@ function wpmu_menu() {
|
|||
function wpmu_checkAvailableSpace() {
|
||||
_deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' );
|
||||
|
||||
if ( !is_upload_space_available() )
|
||||
wp_die( __('Sorry, you must delete files before you can upload any more.') );
|
||||
if ( ! is_upload_space_available() ) {
|
||||
wp_die( sprintf(
|
||||
/* translators: %s: allowed space allocation */
|
||||
__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
|
||||
size_format( get_space_allowed() * MB_IN_BYTES )
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -226,7 +226,11 @@ function upload_is_user_over_quota( $echo = true ) {
|
|||
|
||||
if ( ( $space_allowed - $space_used ) < 0 ) {
|
||||
if ( $echo ) {
|
||||
_e( 'Sorry, you have used your space allocation. Please delete some files to upload more files.' );
|
||||
printf(
|
||||
/* translators: %s: allowed space allocation */
|
||||
__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
|
||||
size_format( $space_allowed * MB_IN_BYTES )
|
||||
);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
|
|
|
@ -6234,7 +6234,14 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
}
|
||||
|
||||
if ( is_multisite() && upload_is_user_over_quota( false ) ) {
|
||||
$this->error = new IXR_Error( 401, __( 'Sorry, you have used your space allocation.' ) );
|
||||
$this->error = new IXR_Error(
|
||||
401,
|
||||
sprintf(
|
||||
/* translators: %s: allowed space allocation */
|
||||
__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
|
||||
size_format( get_space_allowed() * MB_IN_BYTES )
|
||||
)
|
||||
);
|
||||
return $this->error;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-beta1-45081';
|
||||
$wp_version = '5.2-beta1-45082';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue