Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display SVG files in correct language in Gallery. #5090

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Display SVG files in correct language in Gallery. #5090

merged 3 commits into from
Nov 5, 2024

Conversation

dbrant
Copy link
Member

@dbrant dbrant commented Nov 5, 2024

SVG files often have text in multiple languages, encoded into the same file.
Commons automatically generates thumbnails of such SVG files with a well-formed URL that encodes the language. Let's detect the translations that exist for a given SVG, and use the appropriate language (if available) for the thumbnail URL when drawing the SVG in the Gallery.

Phabricator:
https://phabricator.wikimedia.org/T374988

@dbrant dbrant added the Minor Minor stuff label Nov 5, 2024
@cooltey cooltey merged commit 8412b68 into main Nov 5, 2024
1 check passed
@cooltey cooltey deleted the svgLang branch November 5, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Minor stuff
Development

Successfully merging this pull request may close these issues.

2 participants