Last modified: 2014-10-27 20:21:52 UTC
See https://de.wikipedia.org/wiki/Benutzer:Rezonansowy/Sandbox . This image should display in German, not in my useragent lang (English).
I don't think it follows anything at the moment, just takes the first language from the SVG. You can override with [[File:Multilingual_SVG_example.svg|lang=de]]. (Btw note that this image does not have fallback text so it would not display any text at all if your language does not happen to be one of en, de, es, fr.)
(In reply to Tisza Gergő from comment #1) > I don't think it follows anything at the moment, just takes the first > language from the SVG. You can override with > [[File:Multilingual_SVG_example.svg|lang=de]]. > > (Btw note that this image does not have fallback text so it would not > display any text at all if your language does not happen to be one of en, > de, es, fr.) No, its hardcoded en (i think this bug might be a dupe of something) I generally agree in principle that it should use content lang by default. I would be ok with possibly using userlang on sites like commons that are multilingual, but it would have to be evaluated carefully if that would cause confusion
FYI: I have written svg-sieve a script that does what bug 4688 suggests, select which layers to display, and by extension, bug 16052, select messages in a particular language. See bug 4688.
Bug 58920 points out that the browser implementation of the "lang" option is inconsistent. In theory, embedding an SVG in a page with the "lang" attribute set at top-level would result in the behavior you want. In practice, the browser uses the user-specific preferred language --- so, as bawolff points out in comment 2, the first thing we should decide is which of these semantics we want. Should we use the wiki language or the browser's language?
*** Bug 66041 has been marked as a duplicate of this bug. ***
(In reply to C. Scott Ananian from comment #4) > Bug 58920 points out that the browser implementation of the "lang" option is > inconsistent. In theory, embedding an SVG in a page with the "lang" > attribute set at top-level would result in the behavior you want. In > practice, the browser uses the user-specific preferred language --- so, as > bawolff points out in comment 2, the first thing we should decide is which > of these semantics we want. Should we use the wiki language or the > browser's language? Definitely the wiki language, to keep the consistency with the rest of the page content.