Last modified: 2014-10-27 20:21:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63649, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61649 - Multilanguage SVG images should be rendered in the wiki's content language
Multilanguage SVG images should be rendered in the wiki's content language
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.23.0
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
https://de.wikipedia.org/w/index.php?...
: i18n
: 66041 (view as bug list)
Depends on:
Blocks: 16052
  Show dependency treegraph
 
Reported: 2014-02-20 14:15 UTC by Rezonansowy
Modified: 2014-10-27 20:21 UTC (History)
12 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rezonansowy 2014-02-20 14:15:03 UTC
See https://de.wikipedia.org/wiki/Benutzer:Rezonansowy/Sandbox . This image should display in German, not in my useragent lang (English).
Comment 1 Tisza Gergő 2014-02-20 20:39:54 UTC
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.)
Comment 2 Bawolff (Brian Wolff) 2014-02-21 00:48:00 UTC
(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
Comment 3 Papou 2014-02-21 01:21:30 UTC
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.
Comment 4 C. Scott Ananian 2014-05-29 19:38:58 UTC
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?
Comment 5 Andre Klapper 2014-06-02 18:18:54 UTC
*** Bug 66041 has been marked as a duplicate of this bug. ***
Comment 6 Rezonansowy 2014-10-27 20:21:52 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links