The language used to render SVGs should be definable
authorjarry1250 <jarry1250@gmail.com>
Fri, 24 May 2013 12:56:06 +0000 (14:56 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 5 Jun 2013 19:28:03 +0000 (19:28 +0000)
commit3f5d41d4135740573f642b843a675f7daf5a2644
tree785b255b88afbb2c1f6455226277c0e17557ab11
parentc1d900337cded499062f107110f3493de0e7ab73
The language used to render SVGs should be definable

See bug for context.

The implementation is slightly untidy because I've written it so
as to avoid invalidating the existing SVG thumbs -- there will be
no immediate difference (visual/performance/other) as a result of
this.

Tested by me in both...
* [[File:Example.svg|thumb|lang=fr]] AND
* http://example.org/w/index.php?title=File:Example.svg&lang=fr
...modes. Example file on
https://commons.wikimedia.org/wiki/File:Gerrit_patchset_25838_test.svg

Added parser tests.

Bug: 32987
Change-Id: I4cadf96ecd5e169a88ad468a0478d355db980103
includes/ImagePage.php
includes/media/MediaTransformOutput.php
includes/media/SVG.php
languages/messages/MessagesEn.php
tests/TestsAutoLoader.php
tests/parser/parserTest.inc
tests/parser/parserTests.txt
tests/phpunit/includes/parser/NewParserTest.php
tests/phpunit/mocks/media/MockBitmapHandler.php