Page MenuHomePhabricator

{{#tag:ref is not recognised properly by ContentTranslation
Open, MediumPublic

Description

Reported on: https://www.mediawiki.org/wiki/Topic:Twyf0ydbkxwzvnir
Sample given: https://fr.wikipedia.org/w/index.php?title=Filippo_Coletti&action=history

To reproduce, translate https://en.wikipedia.org/wiki/Filippo_Coletti (this revision) to any language, and take a look at the paragraph that begins with the words "Born in Anagni". It has a not that looks like "[n 1]". CX identifies it as a template, but it's not a template.

Event Timeline

TTO renamed this task from {{#tag:ref didn't works well to {{#tag:ref is not recognised properly by ContentTranslation.Aug 28 2017, 5:36 AM

Can you please point to a particular version where this is more clearly seen?

@Amire80 as I can see in the history of the page, for example this edit is about editing {{#tag:ref}}.

OK, I can reproduce it. I'll update the description.

Amire80 moved this task from Need Info to Bugs on the ContentTranslation board.

can't test this now because there's another problem, reported on T245609

I checked the wikitext of the article in English and French

The following template is recognized as a template by VE:

{{#tag:ref|Here a quote from an 1871 newspaper article; See further statements on Coletti's art below.[http://www.coletticonti.it/indic.teatrale17.6.1871.html  From: ''L'Indicatore teatrale'', Firenze, 17 giugno, 1871, anno V, numero 13] ''The robust, melodious, flexible, metallic and inspiring voice, combined with the perfect schooling of singing, made Coletti immortal and celebrated.''|group=n}}

Screen Shot 2018-06-20 at 9.38.01 PM.png (648×1 px, 352 KB)

When translating in cx2-testing using 'Source text' or 'Don't use machine translation options' - the target language column will look identical to the source, and #tag:ref is recognized as a template which it is.

Screen Shot 2018-06-20 at 9.51.28 PM.png (585×1 px, 174 KB)

When using 'Apertium' - there will be two references one is just a text and another one a template. This, I think, the real issue that is reported.

Screen Shot 2018-06-20 at 9.43.54 PM.png (439×913 px, 148 KB)

can't test this now because there's another problem, reported on T245609

I think T245609 is the same issue as reported in this phab task. The articile User:Testpitanormal/testtagref is automatically put into Hidden categories:User pages with reference errors.

The stack trace:

XML Parsing Error: syntax error
Location: https://cxserver.wikimedia.org/v2/translate/en/pt/Google
Line Number 1, Column 1:

TypeError: Cannot read property 'replace' of undefined
    at siteInfoRequest.then (/srv/service/lib/mw/ApiRequestManager.js:194:18)
    at tryCatcher (/srv/service/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/srv/service/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/srv/service/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromiseCtx (/srv/service/node_modules/bluebird/js/release/promise.js:641:10)
    at _drainQueueStep (/srv/service/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/srv/service/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/srv/service/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/srv/service/node_modules/bluebird/js/release/async.js:15:14)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)

Unassigned since @Jpita no longer works for WMF.