The Commons SVG language selector for default language (und) seems to always return the en result instead of the true "no-language" fallback element. The language-selection behavior on wikis without an exact match for the SVG language suffers from the same issue.
I changed the sample of File:Multilingual_SVG_example.svg to add a "no-language" entry of three hearts and three question marks (because there's no Unicode for stomach). When I told commons to render the "default language", the en result is returned. When I go to a Wikipedia site for which no translation of the image exists yet (be.wp), the same en result is still returned.
Steps to reproduce:
- Go to https://commons.wikimedia.org/wiki/File:Multilingual_SVG_example.svg
- Download the SVG file itself.
- Edit Multilingual_SVG_example.svg and add a <text> entry without a systemLanguage parameter:
<text x="400" y="500"> <tspan dy="-50">❤❤❤</tspan> <tspan x="400" dy="200">???</tspan> </text>
- Upload the new version to Commons.
- On https://commons.wikimedia.org/wiki/File:Multilingual_SVG_example.svg , under Render this image in, select "(default language)".
- English language is returned.
- Embed the file in a page of a language Wikipedia for which the SVG file has no translation, then go to that Wikipedia site.
Actual outcome:
Expected outcome:
- The default entry without a systemLanguage (❤❤❤???) should be returned
Notes:
- Not adding an entry at all also renders the English output, so editing is not needed.
- If I add a "dummy" switch at the top in the form of <switch><g systemLanguage="be"></g></switch> and refresh be.wp page, the default entry is returned correctly.
- If I forcibly render the image with a non-existent lang like [[File:Multilingual_SVG_example.svg|lang=xy]] (or be), the default entry is returned correctly. Similarly, requesting https://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Multilingual_SVG_example.svg/langDUMMY-512px-Multilingual_SVG_example.svg.png also gives the right stuff.