Page MenuHomePhabricator

CX creates summary with interwiki alias code
Closed, ResolvedPublic

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

Change 668558 had a related patch set uploaded (by Zabe; owner: Zabe):
[mediawiki/extensions/ContentTranslation@master] CX creates summary with interwiki alias code

https://gerrit.wikimedia.org/r/668558

Change 668558 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] CX creates summary with interwiki alias code

https://gerrit.wikimedia.org/r/668558