Page MenuHomePhabricator

Failed to load saved translation in Content Translation
Open, Needs TriagePublic

Description

I encountered a problem with Content Translation in the Javanese Wikipedia which is the failure in the feature to load saved translations that had been saved for around 2 months or more, and I could not even click or edit the saved translations. Below are attached the screenshots of the problem from Javanese Wikipedia.

WhatsApp Image 2017-12-28 at 15.49.28.jpeg (719×1 px, 166 KB)

WhatsApp Image 2017-12-28 at 14.46.25.jpeg (719×1 px, 135 KB)

WhatsApp Image 2018-01-03 at 13.15.48.jpeg (614×1 px, 145 KB)

Could anyone help us to solve the problem, please? The saved articles are going to be published as a part of the competition we are currently having in Javanese Wikipedia.

Thank you in advance !

Event Timeline

Arrbee renamed this task from Failed to load saved translation in Content Translation to [to triage] Failed to load saved translation in Content Translation.Aug 6 2018, 11:03 AM
Arrbee moved this task from Needs Triage to Check & Move on the ContentTranslation board.

Hi,
Sorry we missed this when you filed it. Can you please let us know if this still happens for this article? Thanks.

Arrbee renamed this task from [to triage] Failed to load saved translation in Content Translation to Failed to load saved translation in Content Translation.Aug 17 2018, 11:41 AM

Checked in cx2 and cx1 (and production) - it's a translation from English to Basa Jawa

To summarize what was found:

(1) The message on the screenshot "This translation is based on an older version of the content" - need additional testing on whether translation is prevented if the source content modified too much.

(2) In production the article "Tramea transmarina" is properly marked as being under translation by the user Ganyong. "Dabeli" article is not under translation.

(3) CX1 loads saved translation for "Tramea transmarina" without any problems but I did not try the case for modified source article content between saved translated versions. Can it be done in the testing env?

(4) CX2 cannot load the source for "Tramea transmarina" - the loading never finishes. The following console error displayed:

jQuery.Deferred exception: Cannot read property 'getAttribute' of undefined TypeError: Cannot read property 'getAttribute' of undefined
   at Object.ve.dm.MWInlineImageNode.static.toDataElement (<anonymous>:197:97)
   at VeDmConverter.ve.dm.Converter.createDataElements (http://cx2-testing.wmflabs.org/load.php?debug=false&lang=jv&modules=ext.cx.campaigns.contributionsmenu%7Cext.cx.widgets.spinner%7Cext.uls.common%2Ccompactlinks%2Cinterface%7Cext.visualEditor.core%2Cmwlink%2Cwelcome%7Cjquery%2Coojs-ui-core%7Cmediawiki.action.view.redirectPage%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.ui.button%7Cmediawiki.widgets%7Cmw.cx.tools.IssueTrackingTool%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CHeader%2CInfobar%2CMessageWidget%2CPageTitleWidget%2CPersonalMenuWidget%2CSourceColumn%2CTargetColumn%2CToolsColumn%2CTranslationHeader%2CTranslationIssueWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui-core.styles%7Coojs-ui-widgets.styles%7Cve.ui.CXDesktopContext%2CCXSurface&skin=vector&version=0a2ywpy:265:915)
   at VeDmConverter.ve.dm.Converter.getDataFromDomSubtree

Adding @Petar.petkovic and @Pginer-WMF to decide on (1) and (4).

Checked in cx2 and cx1 (and production) - it's a translation from English to Basa Jawa

Thanks for testing this, @Etonkovidova. Some comments below:

(1) The message on the screenshot "This translation is based on an older version of the content" - need additional testing on whether translation is prevented if the source content modified too much.

There is a ticket (T168287) for the warning when the original content has changed too much since the translation was started. My understanding is that we are not showing it currently in CX2. Feel free to do further tests and share in the ticket relevant information about current behaviour and issues you may find.

(4) CX2 cannot load the source for "Tramea transmarina" - the loading never finishes.

It would be great to check if this is the same issue reported in T201910 and/or T202622. For now, I'll mention those as potentially related tickets, to consider for the investigation (or check if the issue persists once one of them is solved).