HomePhabricator

SVG upload with specific error (warning) message when blocking

Description

SVG upload with specific error (warning) message when blocking

This patch is to generate specific error (warning) message when
blocking an svg file.

The checkSvgScriptCallback function has been updated, and it's
return type is changed from boolean to array.

A new variable is added to XmlTypeCheck class that contains the
type of error when svg file is uploaded, which is used to generate
concrete error messages later on.

I have added concrete error messages to i18n/en.json and their description
to qqq.json file. Please review the error messages and their description.

Bug: T85924
Change-Id: I3f687bf5b86ce66b703591b85fd03f073aacff4f

Details

Provenance
UbuntuAuthored on
BawolffCommitted on May 25 2015, 8:47 PM
Parents
rMW5a9e236c3311: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
I3f687bf5b86ce66b703591b85fd03f073aacff4f

Event Timeline