Add UI to discover translated SVG files.
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 16 Nov 2013 01:47:51 +0000 (21:47 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Sat, 7 Dec 2013 00:30:31 +0000 (20:30 -0400)
commitd0c0bad56d8ff3fe4c02d23b3fa336988ebcfcf8
tree5066ab1dec4db9bc19d0b4e7cc316585229e031a
parent960b23861890f2721a0a0f5fb6cbd5885684efa7
Add UI to discover translated SVG files.

Currently we support rendering SVGs in multiple languages,
but there is no mechanism for users to discover what languages
a file is available in. Show this information on the image page.

At the moment, if unspecified we always default the language to
english (I believe to avoid mass cache splitting, especially
if most languages wouldn't have a translation of the file in
their language). This code was written in such a way so that
this assumption should be changable in the future if we so
desire.

Long term, Jarry has a super cool svg translation extension
which would take over some of this. However I still believe
we should have an interface for this in core, since we do
support the different language renderings in core.

Change-Id: I84506436514e09d71200aa2db3932aa001b55c71
includes/ImagePage.php
includes/filerepo/file/File.php
includes/media/MediaHandler.php
includes/media/SVG.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messageTypes.inc
maintenance/language/messages.inc