Page MenuHomePhabricator

Template is not added to the translation despite being connected in Wikidata
Open, MediumPublic


Translating the Mediodactylus aspratilis article from English to Simple English, the Speciesbox Template (infobox on the first paragraph) is not added to the translation and an "Automatic translation failed!" message is shown in a popup.

Screenshot 2020-03-20 at 10.48.01.png (556×1 px, 88 KB)

The template is connected though Wikidata, so the expected result should be for the Simple English version of the template to be added to the translation.

The rendering of the template in the source article is different from what you'd see in Visual Editor. Notice that above the infobox rendered there is another element representing the template (with puzzle logo and template name as label):

Screenshot 2020-03-20 at 10.47.51.png (622×1 px, 95 KB)

Javascript console shows the following error:

jQuery.Deferred exception: Cannot read property 'shallowCloneFromRange' of null TypeError: Cannot read property 'shallowCloneFromRange' of null
    at (
    at (<anonymous>:641:86)
    at VeInitMwCXTarget.<anonymous> (<anonymous>:636:168)
    at mightThrow (
    at process ( undefined
jQuery.Deferred.exceptionHook @ load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|||ve.ui.CXDesktopContext&skin=vector&version=jlxga:51

This is based on this conversation with a user.