Page MenuHomePhabricator

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

Description

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 VeDmConverter.ve.dm.Converter.getDomFromNode (https://simple.wikipedia.org/w/load.php?lang=en&modules=ext.visualEditor.core&skin=vector&version=1qs6n:261:282)
    at VeInitMwCXTarget.ve.init.mw.CXTarget.changeContentSource (<anonymous>:641:86)
    at VeInitMwCXTarget.<anonymous> (<anonymous>:636:168)
    at mightThrow (https://simple.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cmw.cx.tools.IssueTrackingTool%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Cve.ui.CXDesktopContext&skin=vector&version=jlxga:49:149)
    at process (https://simple.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cmw.cx.tools.IssueTrackingTool%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Cve.ui.CXDesktopContext&skin=vector&version=jlxga:49:808) undefined
jQuery.Deferred.exceptionHook @ load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|mw.cx.tools.IssueTrackingTool|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|ve.ui.CXDesktopContext&skin=vector&version=jlxga:51

This is based on this conversation with a user.