Page MenuHomePhabricator

Sometimes ContentTranslation adapts references with nothing but <ref />
Closed, ResolvedPublic

Description

Example: https://es.wikipedia.org/w/index.php?title=Banco_Central_de_la_Rep%C3%BAblica_de_Turqu%C3%ADa&action=edit&oldid=92741163

Reported at https://www.mediawiki.org/wiki/Topic:T92i5opy9476e936

Content Translation picks the <ref>'s content only if the content actually appears in it. Example:

==Section A==
One two.<ref name="abc" />

==Section B==
Three four.<ref name="abc">Five six.</ref>

If the translators only translates Section A, but not Section B, then the <ref> in the published page will be empty.

This may happen especially often when translating from English because some articles there intentionally put all the <ref>s' content in the end inside {{reflist}}. For an example of this, see Józef Piłsudski (thanks to @Andrei_Stroe for the example).

Event Timeline

Amire80 triaged this task as Medium priority.Sep 13 2016, 12:23 PM
Amire80 updated the task description. (Show Details)

Adding to January–March 2017 with the hope that it will be fixed along with the OOJS/VE rewrite.

The issue is present when a named reference is used without its definition.
According to Help:References, a named reference should be used like that:

<ref name="foo">content</ref>

To invoke a named footnote:

    <ref name="foo" />

Re-checking two reported cases with cx2 - the first case is analyzed below:
(1) https://es.wikipedia.org/wiki/Banco_Central_de_la_Rep%C3%BAblica_de_Turqu%C3%ADa - the named reference in the original article was created in the following template:

{{ficha de banco central
|divisa iso=TRY
|nombramiento={{fecha|19|4|2016}}&thinsp;<ref name="gobernador">{{cita web|url=http://www.dailymail.co.uk/wires/reuters/article-3534029/Turkish-PM-picks-deputy-governor-Cetinkaya-central-bank-chief-officials.html|título=Turkish cabinet approves deputy governor Cetinkaya as next central bank chief|autor=Orhan Coskun|autor2=Asli Kandemir|idioma=en|fecha=11 de abril de 2016|fechaacceso=5 de agosto de 2016|idioma=en}}</ref>
|tipo interés=7,5%
}}

And then it was used:

'''Gobernador''' 
*[[Murat Çetinkaya]]<ref name="gobernador"/>

It's one reference, of course and it's displayed in the article accordingly:

Screen Shot 2019-05-13 at 12.44.29 PM.png (701×435 px, 273 KB)

Screen Shot 2019-05-13 at 12.44.40 PM.png (174×1 px, 39 KB)

(2) Now, start translating this article - the reference will be displayed in the source panel as two different references: ref name="gobernador" in the template is displayed numbered as 1 (as in the original article), and the next occurrence of the reference will have number 2:
Screen Shot 2019-05-13 at 12.48.55 PM.png (283×451 px, 31 KB)

When translating, the template cannot be adopted, so the reference is not defined, and when translating the text with the next occurrence with the reference - the reference simply won't be there.

Checking the second case - Józef Piłsudski.

For example, the named reference <ref name="Plach"/> is defined only in the reference list. Translating paragraphs with undefined references will result in the omission of such references - in the screenshot below the ref number 3 would get skipped (in the screenshot there is another bug with the template-references not identified properly- reported as T223176.

Screen Shot 2019-05-13 at 2.45.03 PM.png (334×918 px, 156 KB)

To summarize

  • named references get skipped if their definitions are not included in the translation
  • no warning to a user about skipped references

To summarize

  • named references get skipped if their definitions are not included in the translation

Can you confirm if the issue happens when the definition is inside a template (T209266)? or this also happens when the definition is in a regular text paragraph?

  • no warning to a user about skipped references

These two tickets can help improve this situation:

To summarize

  • named references get skipped if their definitions are not included in the translation

Can you confirm if the issue happens when the definition is inside a template (T209266)? or this also happens when the definition is in a regular text paragraph?

It seems that (T209266) captures the case I observed.

Etonkovidova claimed this task.

Re-checked in cx-testing the exact scenario described in the task. The paragraphs with named references examples can be found in Jet Propulsion Laboratory

  1. Let call the paragraph below as the paragraph B. It defines two named references (highlighted) <ref name="Koppes"> and <ref name=Conway> . The case is described in the task as
==Section B==
Three four.<ref name="abc">Five six.</ref>

JPL traces its beginnings to 1936 in the [[Guggenheim Aeronautical Laboratory]] at the California Institute of Technology (GALCIT) when the first set of rocket experiments were carried out in the [[Arroyo Seco (Los Angeles County)|Arroyo Seco]]. Caltech graduate students [[Frank Malina]], [[Qian Xuesen]], [[Weld Arnold]], and [[Apollo M. O. Smith]], along with [[Jack Parsons (rocket engineer)|Jack Parsons]] and [[Edward S. Forman]], tested a small, alcohol-fueled motor to gather data for Malina's graduate thesis. {{Citation needed|reason=Qian Xuesen is not mentioned in https://www.jpl.nasa.gov/jplhistory/early/|date=November 2017}} Malina's thesis advisor was engineer/aerodynamicist [[Theodore von Kármán]], who eventually arranged for U.S. Army financial support for this "GALCIT Rocket Project" in 1939. In 1941, Malina, Parsons, Forman, [[Martin Summerfield]], and pilot Homer Bushey demonstrated the first jet-assisted takeoff ([[JATO]]) rockets to the Army. In 1943, von Kármán, Malina, Parsons, and Forman established the [[Aerojet]] Corporation to manufacture JATO rockets. The project took on the name Jet Propulsion Laboratory in November 1943, formally becoming an Army facility operated under contract by the university.<ref>{{cite web | title=Early Years | url=http://www.jpl.nasa.gov/jplhistory/early/settingstakes.php | publisher=JPL}}</ref> <ref name="Koppes">{{cite journal | first=Clayton | last=Koppes | title=JPL and the American Space Program | location=New Haven | publisher=Yale University Press | journal=The American Historical Review|volume=89 |issue=2 |date= 1 April 1982}}</ref> <ref name=Conway>{{cite web | first=Erik M. | last=Conway | title=From Rockets to Spacecraft: Making JPL a Place for Planetary Science | website=Engineering and Science | volume = 30 | issue=4 | pages=2–10 | url=http://pr.caltech.edu/periodicals/EandS/ESarchive-frame.html}}</ref> <ref name="High Frontier">{{cite book | last=Launius | first=Roger | title=To Reach High Frontier, A History of U.S. Launch Vehicles | date=2002 | publisher=University of Kentucky | isbn=978-0-813-12245-8 | pages=39–42}}</ref>

  1. The references <ref name="Koppes"> and <ref name=Conway> (highlighted in the paragraph below) will be used as the case that described in the task - let's call it a paragrpah B.

==Section B==
Three four.<ref name="abc">Five six.</ref>

In 1954, JPL teamed up with [[Wernher von Braun]]'s engineers at the [[Army Ballistic Missile Agency]]'s [[Redstone Arsenal]] in [[Huntsville, Alabama]], to propose orbiting a satellite during the [[International Geophysical Year]]. The team lost that proposal to [[Project Vanguard]], and instead embarked on a classified project to demonstrate ablative re-entry technology using a [[Jupiter-C]] rocket. They carried out three successful sub-orbital flights in 1956 and 1957. Using a spare [[Juno I]] (a modified Jupiter-C with a fourth stage), the two organizations then launched the United States' first satellite, [[Explorer 1]], on January 31, 1958.<ref name="Koppes"/><ref name="Conway"/>

  1. Paragraph A is not translated; only paragraph B is translated. Published (to be exact, paragraph B was the only paragraph published) with full references definition:

En 1954, JPL Sed id ligula ex. Nulla facilisi. Donec molestie elit lectus, vitae iaculis orci tempor id. Nullam vel massa facilisis, pretium augue non, lobortis mauris. Integer vitae vulputate ipsum, ac consequat velit. Vivamus efficitur efficitur leo ac rhoncus. Aliquam pharetra at nulla id scelerisque. Añoa cabo tres exitosos sub-vuelos orbitales en 1956 y 1957. Utilizando un de sobra [[Juno I|Juno yo]] (un Júpiter modificado-C con una cuarta etapa), las dos organizaciones entonces lanzaron los Estados Unidos' primer satélite, [[Explorer 1|Explorador 1]], encima enero 31, 1958.<ref name="Koppes">{{Cita publicación|nombre=Clayton|apellidos=Koppes|título=JPL and the American Space Program|ubicación=New Haven|editorial=Yale University Press|publicación=The American Historical Review|volumen=89|número=2|fecha=1 April 1982}}</ref> <ref name="Conway">{{Cita web|nombre=Erik M.|autor=Conway|título=From Rockets to Spacecraft: Making JPL a Place for Planetary Science|sitioweb=Engineering and Science|páginas=2–10|url=http://pr.caltech.edu/periodicals/EandS/ESarchive-frame.html}}</ref>

Marking the task as Resolved.