Page MenuHomePhabricator

Issue translating template Modèle:Date from french to portuguese
Open, MediumPublicBUG REPORT

Description

Steps to Reproduce:
1- start a translation with https://fr.wikipedia.org/wiki/Utilisateur:Testpitanormal/joko from french to portuguese
2- translate the first paragraph using MT

Actual Results:

  • the paragraph has some weird numbers
  • the paragraph has some text that is not translated, an error message is added to the translation

image.png (272×968 px, 89 KB)

  • the template Date gets translated into Dtext

source

{{Date-|27 octobre 2014}} au {{Date-|20 octobre 2019}} sous la direction du président [[Joko Widodo]].

target

{{Dtext|27 octobre 2014}} au {{Dtext|20 octobre 2019}} sous la direction du président [[Joko Widodo]].

Expected Results:

  • the paragraph should be translated and the templates as well

Event Timeline

Amire80 subscribed.

The Lien ("link") template is troublesome, too. It hasn't changed in three years, so either it has been troublesome for all this time, or something has changed recently in how Parsoid or CX handle this template.

Portuguese Wikipedia has a corresponding template, and both languages have TemplateData, but the parameter names don't appear to be mapped to each other. Portuguese has numbered parameters (1, 2, 3), and French has named parameters (langue, trad, fr). I sometimes decide to be bold and just edit TemplateData in other languages to get the parameters mapped, but I'm reluctant to do it this time, because these are often-used and sensitive templates. Experienced editors in French and Portuguese should take a look at this and try to harmonize them.

But despite all the general trouble with how templates work across wikis, which I described above, I still wouldn't expect CX2 to behave so strangely and show {{{2}}}, etc., in the translation column. So I do suspect that something in CX or Parsoid is not working as intended.

2- translate the first paragraph using MT

From the screenshot I cannot see which MT system is used. Is the issue happening with all translation services available or only with specific ones?

2- translate the first paragraph using MT

From the screenshot I cannot see which MT system is used. Is the issue happening with all translation services available or only with specific ones?

any MT engine, even with "copy"

Pginer-WMF triaged this task as Medium priority.Aug 11 2020, 8:54 AM
Pginer-WMF moved this task from Needs Triage to Bugs on the ContentTranslation board.

Thanks for flagging this, I added it as a sub-task of T102964: [Epic] Better support for templates in Content Translation, to keep it at hand when we focus on that area.

I've taken another look at it today. It looks like this French template accepts parameters written in the French language, and the template's internal code converts processes French month names. Unfortunately, this cannot be easily translated and converted into Portuguese or any other language using current MediaWiki and CX functionality.