Page MenuHomePhabricator

<translate> tag should not be parsed in TimedText
Open, Needs TriagePublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

  • On a site installed TimedTextHandler and Translate extensions
  • Add <translate> tag on a TimedText page (example)

What happens?:
This page appears in "Pages proposed for translation" section in Special:PageTranslation

What should have happened instead?:
It should not. Translate does not work at there.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

According to action=info, the TimedText page has content model wikitext. This is wrong, the SRT files are not wikitext. There’s a content model text, either that or a custom content model should be used. Since T163254, switching to a non-wikitext content model should automatically disable Translate on TimedText pages.

I wouldn't be surprised if someone actually wants to translate subtitles using the Translate extension, though I would not recommend it. There should be better ways, though I am not aware of any.

The French translation of TimedText:MediaWiki Translate Extenstion Tutorial should be at TimedText:MediaWiki Translate Extenstion Tutorial, not TimedText:MediaWiki Translate Extenstion Tutorial, so the Translate extension doesn’t work anyway out of the box. (It may be a good idea to support it, but that support probably wouldn’t require <translate> tags.)

the TimedText page has content model wikitext. This is wrong, the SRT files are not wikitext

No longer.. they used to be, sort of, broken and partially (links, bold, italic etc). This was changed when we switched to serving VTT subtitles, but the content model stuff etc still needs an overhaul.