Page MenuHomePhabricator

CX creates summary with interwiki alias code
Open, Needs TriagePublic

Description

Steps to reproduce

  1. Translate article from nowiki -> cswiki using the extension
  2. Save translation

Expected behavior
The page creation summary contains iw link to the original article. It should contain main interwiki code

Current behavior
Summary like this: Vytvořeno překladem stránky „[[:nb:Special:Redirect/revision/17011403|Wilhelm Peder Daniel Cappelen]]“ is produced. Note the "nb" part. It seems it either uses iw alias code instead of main iw code, or it uses language code intead of interwiki code.

The issue is this breaks bots using edit summary to fill into the template.

Event Timeline

Dvorapa created this task.Jun 12 2020, 3:23 PM
Restricted Application added subscribers: jeblad, Aklapper. · View Herald TranscriptJun 12 2020, 3:23 PM
Dvorapa renamed this task from CX creates summary with not current interwiki code to CX creates summary with interwiki alias code.Jun 12 2020, 3:27 PM
Dvorapa updated the task description. (Show Details)

This would be an easy fix for a volunteer. One needs to modify the code in https://gerrit.wikimedia.org/g/mediawiki/extensions/ContentTranslation/+/0ff78dcc3bbdb1532a66e68b96441f9df4c5b770/api/ApiContentTranslationPublish.php#54 to process the from parameter with ContentTranslation\SiteMapper::getDomainCode.

Dvorapa added a subscriber: Urbanecm.