Full-Page Translations Does Nothing for Standalone SVGs
Categories
(Firefox :: Translations, defect)
Tracking
()
People
(Reporter: nordzilla, Assigned: nordzilla)
Details
Attachments
(1 file)
Description
A Mozilla Connect user reported that Full-Page Translation was being offered for the following standalone SVG page, yet nothing is translated when invoked.
While we do support translating SVGs within documents, our TranslationsDocument algorithm only adds root elements to be translated if there is a document body. The above SVG does not have a document body.
We should consider expanding the context in which we add roots to be translated to support this case.
Steps to Reproduce
- Navigate to https://upload.wikimedia.org/wikipedia/commons/a/af/Alerte_Globale.svg
- Attempt to trigger Full-Page Translations to another language.
Expected Results
The SVG content translates.
Actual Results
Full-Page Translations becomes active, but the SVG content remains untranslated.
| Assignee | ||
Comment 1•4 months ago
|
||
This commit expands the context in which we add root elements to
the TranslationsDocument to support cases where the document may
not have a body. This happens in the case of a standalone SVG page.
Updated•4 months ago
|
Comment 3•4 months ago
|
||
| bugherder | ||
Updated•3 months ago
|
Updated•3 months ago
|
Comment 4•3 months ago
|
||
Reproducible on a 2025-12-02 Firefox Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 148.0a1 and Firefox 147.0b2 on Windows 10, Ubuntu 22 and macOS 15.
Description
•