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

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 27 2017, 10:08 AM
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 updated the task description. (Show Details)Nov 27 2017, 2:41 PM
Amire80 moved this task from Need Info to Bugs on the ContentTranslation board.
Arrbee moved this task from Bugs to Check & Move on the ContentTranslation board.Jun 5 2018, 11:33 AM
Etonkovidova removed Etonkovidova as the assignee of this task.Jun 21 2018, 4:55 AM
Etonkovidova added a subscriber: Etonkovidova.
Arrbee moved this task from CX2 to Check & Move on the ContentTranslation board.Mon, Feb 17, 8:18 AM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMon, Feb 17, 8:18 AM
Arrbee moved this task from Check & Move to CX2 on the ContentTranslation board.Mon, Feb 17, 9:30 AM
Jpita added a comment.Wed, Feb 19, 3:12 PM

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}}

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.

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.

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)