Page MenuHomePhabricator

switch not recognized after $wgSVGMetadataCutoff
Closed, DuplicatePublicBUG REPORT

Description

Files containing the first <switch>-Element after https://www.mediawiki.org/wiki/Manual:$wgSVGMetadataCutoff (> 256 kb), are not recognized as translatable-SVGs, to avoid excessive resources by xml-parser.

So adding

<switch>
 <g systemLanguage="de"></g>
 <g systemLanguage="en"></g>
 <g></g>
</switch>

at the beginning (containing all used langues) solves the issue

Event Timeline

Reedy renamed this task from switch not recogniced after $wgSVGMetadataCutoff to switch not recognized after $wgSVGMetadataCutoff.Apr 2 2021, 12:20 PM
Reedy updated the task description. (Show Details)

This basic problem is reported in T270889.

The workaround is reported in T270999.

I'd label this report as a duplicate of the latter.