Page MenuHomePhabricator

Localized SVG labels stopped being rendered
Closed, DuplicatePublicBUG REPORT

Description

This was first noticed in the Wikidata home page, which uses an SVG file with labels localized into multiple languages. For example, https://www.wikidata.org/wiki/Wikidata:Main_Page?uselang=pt is showing the English labels, even though the Portuguese labels are available (and working) in https://commons.wikimedia.org/w/index.php?title=File:Wikidata_nodes_in_white.svg&lang=pt.

This is not exclusive to Wikidata: I can reproduce the issue also on ptwiki: pt:User:Waldyrious/Testes.

Steps to replicate the issue (include links if applicable):

What happens?:

  • The banner image shows text labels in English.

What should have happened instead?:

  • The labels in the banner image should be localized, as seen here.

Event Timeline

The SVG file displays Portuguese:

The img tag on WikiData looks correct:

  • <img src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Wikidata_nodes_in_white.svg/langpt-1205px-Wikidata_nodes_in_white.svg.png" ...

The image has English:

It is probably pulled out of the cache (lots of visitor to pt.WikiData), so try a different size:

That displays pt.

I suspect this issue duplicates T335361.

Purging cache from Commons with action=purge and reloading.

Now

displays pt.