Page MenuHomePhabricator

Special:PagePreparation does not append {{#translation:}} to categories
Closed, ResolvedPublic

Description

Hi greetings, I would like to report a bug in the special page Special:PagePreparation. When we try to prepare pages for translation through this, it does not prepare categories for translation.

Reproducing the bug

*Open Special:PagePreparation
*Enter the name of a page for preparation (page should have at least one category)
*Click prepare.
*The page will show the prepared version with translate tags, markers, repaired links, etc.
*In this diff the the wikilinks of categories will be appended with a template {{#translation:}}.
eg:[[Category:Example{{#translation:}}]]
*Click publish.
*The page will be published
*When we open the page in edit window (ie the published version) the category markups remain as previous
ie. the template {{#translation:}} will not get appended.

Please consider this issue.

Details

Event Timeline

Aklapper renamed this task from Special:PagePreparation and issues with translation of categories to Special:PagePreparation does not append {{#translation:}} to categories.Jul 29 2020, 6:31 PM

I just tried this out, and the categories were prepared.

translation.png (1,207×630 px, 27 KB)

EDIT: I see now; when saving, the category was not changed. Looks like a bug to me.

Change #1258315 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/extensions/Translate@master] PagePreparation cleanup/modernization

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

Change #1258315 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] PagePreparation cleanup/modernization

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