Page MenuHomePhabricator

the language-switcher on SVG file isn't working
Closed, DuplicatePublic

Description

This SVG file have the systemLanguage text

图片.png (716×265 px, 14 KB)

I switch the lanuguage and submit the request. Then It only return the rendering of the en language. And it seems that it will fallback to the first language of text tag which the tag is en at frist.
T125710
It seems a lot of problem. Is it about that?

Event Timeline

Problem 1 (Language switching at ImagePage.php) is improper handling of URL lang arg on Commons File pages. Selecting a language with mixed case langtag will fail. Same problem as T154132.

Problem 2 (switch processing at svg-cond.c) is librsvg not handling langtags according to the SVG specification. It will prefix match to the first hyphen. Same problem as T125710 and T154237.

Problem 1 (Language switching at ImagePage.php) is improper handling of URL lang arg on Commons File pages. Selecting a language with mixed case langtag will fail. Same problem as T154132.

Problem 2 (switch processing at svg-cond.c) is librsvg not handling langtags according to the SVG specification. It will prefix match to the first hyphen. Same problem as T125710 and T154237.

It seems that it like T154132. I suggest it use another parameter name for switching the language of svg view page because it seems that the 'lang' parameter have been used by ULS.