final public function createInternal( array $params ) {
wfProfileIn( __METHOD__ );
if ( strlen( $params['content'] ) > $this->maxFileSizeInternal() ) {
- $status = Status::newFatal( 'backend-fail-create', $params['dst'] );
+ $status = Status::newFatal( 'backend-fail-maxsize', $params['dst'] );
} else {
$status = $this->doCreateInternal( $params );
$this->clearCache( array( $params['dst'] ) );
'backend-fail-closetemp' => 'Could not close temporary file.',
'backend-fail-read' => 'Could not read file $1.',
'backend-fail-create' => 'Could not create file $1.',
+'backend-fail-maxsize' => 'Could not create file $1 because it is larger than {{PLURAL:$2|$2 bytes|$2 byte}}.',
'backend-fail-readonly' => 'The storage backend "$1" is currently read-only. The reason given was: "$2"',
'backend-fail-synced' => 'The file "$1" is in an inconsistent state within the internal storage backends',
'backend-fail-connect' => 'Could not connect to storage backend "$1".',