Topic on Project:Village Pump

Translations:xxx items Suggestions display double amount of linked pages

8
Summary by Wladek92

follow task on Phabricator

Wladek92 (talkcontribs)

Hi all, in the frame 'Suggestion' under the percencentage of correspondance, you get a list of links towards pages using the proposed translation. If I developp the list, I see that each link is duplicated, that means that if you see 20 lines saying the text is used 20 times, in reality only 10 pages are using the text.

Example with page T:40 at URL => VisualEditor/Single edit tab/40 is associated to Translations:VisualEditor/Single edit tab/40/fr and text 'See $1 for more information.' . In the right frame under 'Suggestions' I see "Voir $1 pour plus d'informations. 100 % de correspondance utilisé 20 fois". And if I open the list of 20 links I get :

    Translations:Help:Export/11/fr
    Translations:Help:Export/11/fr
    Translations:Help:Namespaces/95/fr
    Translations:Help:Namespaces/95/fr
    Translations:Manual:FAQ/221/fr
    Translations:Manual:FAQ/221/fr
    Translations:Manual:How to debug/75/fr
    Translations:Manual:How to debug/75/fr
    Translations:Manual:HTML templates/38/fr
    Translations:Manual:HTML templates/38/fr
    Translations:Manual:Installation guide/103/fr
    Translations:Manual:Installation guide/103/fr
    Translations:Manual:Installation requirements/97/fr
    Translations:Manual:Installation requirements/97/fr
    Translations:Manual:Pywikibot/PAWS/66/fr
    Translations:Manual:Pywikibot/PAWS/66/fr
    Translations:Phabricator/Help/282/fr
    Translations:Phabricator/Help/282/fr
    Translations:Template:DownloadMediaWiki/28/fr
    Translations:Template:DownloadMediaWiki/28/fr

Here above you see the lines are systematically duplicated.
BUT, sometimes it is not the case: now I select 'Installation' in => https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-Extension%3AAbuseFilter&action=page&filter=&language=fr
There Suggestions shows 49 lines (curious: odd value and some entries are duplicated, other are not):

    Translations:Extension:3D/21/fr
    Translations:Extension:AbsenteeLandlord/5/fr
    Translations:Extension:Add Article/Category to Category/5/fr
    Translations:Extension:Add Article/Category to Category/5/fr
    Translations:Extension:AllTimeZones/6/fr
    Translations:Extension:AllTimeZones/6/fr
    Translations:Extension:BetaFeatures/4/fr
    Translations:Extension:BetaFeatures/4/fr
    Translations:Extension:CheckUser/6/fr
    Translations:Extension:CheckUser/6/fr
    Translations:Extension:Cognate/27/fr
    Translations:Extension:ConfirmAccount/4/fr
    Translations:Extension:ConfirmAccount/4/fr
    Translations:Extension:ContentTranslation/4/fr
    Translations:Extension:ContentTranslation/4/fr
    Translations:Extension:CSS/9/fr
    Translations:Extension:Graph/10/fr
    Translations:Extension:InputBox/5/fr
    Translations:Extension:Labeled Section Transclusion/61/fr
    Translations:Extension:MassMessage/2/fr
    Translations:Extension:PageTriage/10/fr
    Translations:Extension:PageTriage/10/fr
    Translations:Extension:ParserFunctions/5/fr
    Translations:Extension:Randomrootpage/6/fr
    Translations:Extension:Randomrootpage/6/fr
    Translations:Extension:RevisionSlider/5/fr
    Translations:Extension:SendGrid/6/fr
    Translations:Extension:Sudo/6/fr
    Translations:Extension:Sudo/6/fr
    Translations:Extension:UserMerge/3/fr
    Translations:Extension:Variables/32/fr
    Translations:Extension:Variables/32/fr
    Translations:Extension:WikiEditor/6/fr
    Translations:Extension:WikiEditor/6/fr
    Translations:Help:Extension:Translate/Translation memories/137/fr
    Translations:Manual:Pywikibot/flickrripper.py/5/fr
    Translations:PHP configuration/4/fr
    Translations:Skin:Cologne Blue/3/fr
    Translations:Skin:Cologne Blue/3/fr
    Translations:Skin:Modern/4/fr
    Translations:Skin:Modern/4/fr
    Translations:Skin:Monaco/9/fr
    Translations:Skin:Nostalgia/4/fr
    Translations:Skin:Splash/7/fr
    Translations:Skin:Splash/7/fr
    Translations:Skin:Vector/14/fr
    Translations:Commons:LrMediaWiki/5/fr
    Translations:Commons:LrMediaWiki/5/fr
    Translations:Wikidata:Pywikibot - Python 3 Tutorial/6/fr

Here above you see some lines are single, other lines are systematically duplicated.
Obviously there is a problem in the generation of the list.

Other wikis seems to be ok: hereafter on translatewikiNet for Unit = unité => https://translatewiki.net/wiki/Special:Translate?action=translate&group=%21additions&language=fr&filter=

    FreeCol:Model.tradeItem.unit.name/fr
    MediaWiki:Srf-paramdesc-unit/fr
    MediaWiki:Wikibase-quantitydetails-unit/fr
    Phabricator:phabricator-differential-f6b935ab337145ef/fr

Christian FR (talk) 12:15, 15 March 2020 (UTC)

Wladek92 (talkcontribs)

allo ?

Ciencia Al Poder (talkcontribs)

Looks like a bug. Hence it should be in a bugreport.

Wladek92 (talkcontribs)

just to be sure, you confirm you also see this duplication ?

Shirayuki (talkcontribs)

Duplication always happens.

Wladek92 (talkcontribs)

no sometimes lines are single (read the topic please).

Shirayuki (talkcontribs)
Wladek92 (talkcontribs)