Page MenuHomePhabricator

Wrong template added for a template not available in the target language
Closed, ResolvedPublic

Description

When translating the Meg Johnson article from English to Spanish an infobox based on the Infobox writer template is in the source article. This template is not available in Spanish{F34946467}. However, adding it to the translation results in the Infobox Writer template added to the translation and a "translation failed" message shown:

Screenshot 2022-02-09 at 09.31.55 2.png (1,099×668 px, 233 KB)

The expected behaviour would be for the template not to be added to the translation and a warning indicating that the template is not available to be shown.

Additional observations:

  • In Spanish Wikipedia there is a redirect for "Infobox writer" to a different template (Plantilla:Ficha_de_persona). But since it is not connected on Wikidata it is not expected to interfere.
  • A warning for the template not being available is shown. However, it seems to be treated as an in-line template where the source contents are supposed to be added as plain text. However, the source contents are added here as a template instead.
  • When the article is loaded an error is shown related to the MT which does not seem to happen in other articles. So it may be related to the pre-fetching of the translation for this content. (video below)

Event Timeline

Pginer-WMF triaged this task as Medium priority.

As per today's testing in production, the issue of wrong template does not happen. I see template not available message with empty content appearing.

When I chose MT engines, Google alone fails which need separate investigation

When I chose MT engines, Google alone fails which need separate investigation

Tracked in T309161: Infoxbox Writer template fails to translate with Google MT