Page MenuHomePhabricator

SVG thumbnails on file description pages are not localized
Open, MediumPublic

Description

After resolving bug 32987 it is possible to render localized thumbnails of SVGs.

However on file description pages we still show the unlocalized (or probably English) rendering of a file unless the "lang=xy" URL parameter is specified.

I think we should naturally respect UI language here and show localized renderings of SVGs on file description pages.


Version: 1.23.0
Severity: normal

Details

Reference
bz57508

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:13 AM
bzimport set Reference to bz57508.
bzimport added a subscriber: Unknown Object (MLST).

On a related note, I have a patch to add a drop down menu on such svgs currently pending - gerrit change 95746


I worry a bit that having different users see different versions without indication as to why would be confusing. I'd personally prefer to use content language instead as default (so on frwiki you would get french, but all users get same version). I also think that people should see the same version on description page as is in article.

(In reply to comment #1)

I have a patch to add a drop down menu on such svgs currently pending

Great! One of my main concerns when reporting this was discoverability of localized versions (how should a user from e.g. frwiki now, that a file was available in French, when he only gets to see the English image when searching e.g. Commons). Your patch will solve that. If for performance reasons always the English version is shown by default, this is still OK I assume.

I'd personally prefer to use content language instead as default (so on
frwiki you would get french, but all users get same version).

That would be fine, too, and is basically what I had in mind (assuming that a user of frwiki has set the UI language to fr in most cases).
What "content language" would be chosen for international Wikis like Commons, though? Always English?

I also think that people should see the same version on description page
as is in article.

That would bring this whole request a step further. It totally makes sense. Would it be feasible (both technically and in terms of community acceptance) to always show localized renderings if available (even if an image is not embedded using the "lang=" parameter)?