Page MenuHomePhabricator

[Bug 🐛] Refinement of Translate extension parsing logic for structural tags and templates
Open, Needs TriagePublicBUG REPORT

Description

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

What happens?:

The parser attempts to wrap non-translatable syntax, such as HTML formatting tags (<center>, <big>) and template-driven headers, within translation blocks, leading to potential rendering errors, broken formatting, or unnecessary translation strings. Refer to the following correction by Aafi for context, which refers to the permalink above: https://meta.wikimedia.org/w/index.php?title=Event:WikiFuturo_2026&diff=prev&oldid=30128856. The issue involves refining the parsing logic to better distinguish content intended for localisation from structural markup.

What should have happened instead?:

The system should intelligently recognise and exclude these structural elements from translation blocks, ensuring that formatting tags and template-generated titles remain outside the translation tags to maintain page integrity and proper rendering.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
N/A

Other information (browser name/version, screenshots, etc.):
N/A