Page MenuHomePhabricator

suggestions are desynchronised when several [[]] links $1 $2 $3... are present
Open, MediumPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • in the suggestion box Mint shows -> Les pages pour lesquelles nous avons effectué des ajustements et des configurations spéciaux comprennent: pages principales, pages spécifiques à certains projets sœurs, pages spéciales, l'éditeur de wikitext de $1 $ $ $ $ $2 $ $ $ 2017 , et l'éditor visuel de $2 $ 3 $ $ $ 3 $ .

What should have happened instead?:

  • notice the abnormal profusion of $ signs
  • suggested form should respect parameter order and could then be -> Les pages pour lesquelles nous avons effectué des ajustements et des configurations spéciaux comprennent: pages principales, pages spécifiques à certains projets sœurs, pages spéciales, [[$1|l'éditeur de wikitext 2010]], [[$2|l'éditeur de wikitext 2017]], et [[$3|l'Editeur Visuel]].
  • Remarks: if the link is specified using [] instead of [[]], then the suggestion is ok; see -> Translations:Reading/Web/Desktop Improvements/Frequently asked questions/306/fr where EN text is ->"Any other skins such as [$1 Monobook], [$2 Timeless], [$3 Minerva] or [$4 Modern] are not be changed at all." and suggestion is correct -> "Les autres skins tels que [$1 Monobook], [$2 Timeless], [$3 Minerva] ou [$4 Modern] ne sont pas modifiés du tout."
  • Suggestions seem completly lost even when dealing with a single form [[]]. For the case of -> Translations:Reading/Web/Desktop Improvements/Updates/440/fr where EN text is -> "This is the goal of the new project, [[$1|Accessibility for reading]]" the suggestion is "C'est l'objectif du nouveau projet, [[$1 $ ⁇ ⁇ }}"
  • Sometimes the links completly disappear in the Suggestions. For example -> Translations:Reading/Web/Desktop Improvements/Frequently asked questions/435/fr says ->"All this is done in collaboration with the [[$1|Growth]] and [[$2|Editing]] teams." and Mint suggests -> Tout cela est fait en collaboration avec les équipes de croissance et d'édition.
  • On the other side when there is no link in the source to translate, a link may appear spontaneously in the Mint suggestion; see -> Translations:Reading/Web/Desktop Improvements/Updates/Offer to potential pilots/56/fr where source is -> focused on allowing access to important functionality (logging in/out, history, talk pages, etc.) without requiring people to scroll to the top of the page. and suggestion is -> '''[[$1|Figer l'entête du site et des articles]]''' permet d'accéder à des fonctionnalités importantes (connexion / déconnexion, modification, pages de discussion, etc.) sans avoir besoin de remonter en haut de la page. May be a problem of cache: the suggestion referring to an old format of the message to translate.
  • other surprising case shows the pipe is substitued by '9:1' in message Translations:Commons:Reusing content outside Wikimedia/60/fr saying -> It is possible to use files directly on Commons within another website, by setting up a MediaWiki wiki with [[$ic|InstantCommons]], so that Commons files can be used as easily as they can on Wikipedia. is suggested as -> Il est possible d'utiliser des fichiers directement sur Commons dans un autre site Web, en configurant un wiki MediaWiki avec $ic 9:1InstantCommons, de sorte que les fichiers Commons peuvent être utilisés aussi facilement que possible sur Wikipedia.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.): Desktop + Vector skin.

Event Timeline

Wladek92 renamed this task from suggestions are desynchronised when several link $1 $2 $3... are present to suggestions are desynchronised when several [[]] links $1 $2 $3... are present.Sep 14 2023, 3:33 PM
Wladek92 updated the task description. (Show Details)

Thanks for the examples. I think we can use these as test cases. Improper wikitext handling is a known issue: T341544: Wikitext syntax is translated when requesting translations via MinT

Nikerabbit moved this task from Backlog to Infrastructure on the MinT board.