Page MenuHomePhabricator

Content Translation fails to adapt {{Cite web}} from English to Odia
Closed, ResolvedPublic

Description

Reported at https://or.wikipedia.org/w/index.php?title=%E0%AC%AC%E0%AC%BF%E0%AC%B7%E0%AD%9F:Vvu0vwem7eqg1i3r&topic_showPostId=vxq6mllruuucmzzq#flow-post-vxq6mllruuucmzzq

I can reproduce this. I tried to translate the same article, https://en.wikipedia.org/wiki/World_Diabetes_Day . Most of the <ref>s there are {{cite web}}. or.wikipedia has a corresponding template. I can paste the references from the source wiki without any change to a test page, and they work: https://or.wikipedia.org/wikiUser:Aaharoni-WMF/test_cite_001

But CX is not able to adapt them. For the simplest example, try translating https://en.wikipedia.org/wiki/User:CXTests/T267869 to Odia. When you click the first paragraph, the sidebar will say "A reference could not be transferred to the translation since it uses a template with a different structure."

Event Timeline

Pginer-WMF raised the priority of this task from Medium to High.Jul 12 2021, 12:35 PM
santhosh added a subscriber: santhosh.

A dangling comma in the template data definition for Cite:web in Odia wiki was the issue. Fixed it in the wiki.

Now this template pairs are fully adapatable.

Jpita added a subscriber: Jpita.

the references don't show up on CX in the target translation section but they show up after publishing.
is this ok @Amire80?

on cxafter publishing
image.png (1×1 px, 156 KB)
image.png (512×1 px, 69 KB)

the references don't show up on CX in the target translation section but they show up after publishing.
is this ok @Amire80?

TL;DR: probably OK.

But read on :)

There are two things that may make the references' content appear in an article:

  1. A paragraph with the <references /> tag. Sometimes it's written just like this, and sometimes it's inserted using the {{reflist}} template or something similar.
  2. If there are <ref> tags on the page, but no <references /> tag anywhere on the same page, then the references are shown automatically in the end of the article.

What probably happened in your testing is #2, which is OK.

To also test #1, click "Add translation" in the last paragraph, under the references. It should then show the references also during translation.