Page MenuHomePhabricator

A translatable page should not be considered as broken when last change in history is a log entry
Closed, ResolvedPublicBUG REPORT

Description

When a translatable page has been moved or protected,

  • the text “This page has changes since it was last marked for translation.” is not displayed in top of the page
  • the page is listed under Broken pages section of Special:PageTranslation

… until the page is edited (or marked again for translation).


Previous title: Special:PageTranslation lists "broken pages", but they are not broken

Steps to Reproduce:
For example, see
https://www.mediawiki.org/wiki/Special:PageTranslation

Actual Results:
Special:PageTranslation shows a lot of "Broken pages".

Help:New filters for edit review/FAQ (remove from translation)
Help:Notifications/Types (remove from translation)
Help:Protected pages (remove from translation)
Help:Subpages (remove from translation)
Help:Sysops and permissions (remove from translation)
Help:User rights and groups (remove from translation)
Help:Watchlist (remove from translation)
:

Expected Results:
These pages seems not to be broken.

Outcome

Certain page actions like changing the protection levels no longer cause translatable page's status to be "broken".

Event Timeline

I checked three pages, two had a protection log entry as last change in history (a bug I believe) and one didn't have <translate> tags so broken from the point of the system: https://www.mediawiki.org/w/index.php?title=Manual:Glossary

I am fixing these pages on Meta:

  • for pages with no <translate> tag, often, an editor wanted to remove the possibility to translate. So translation administrator should just use “remove from translation” action link from Special:PageTranslation.
  • for pages which have been protected since they have been marked for translation, to workaround this bug, translation administrator should mark the page again for translation, using the following link: https://meta.wikimedia.org/w/index.php?title=Special:PageTranslation&target=<Issued_page_name>&do=mark.

Another case:

The last history changes in history are an automatic move log entry (through translatable page moving system).

So this bug may concern all log entries related as last history change, and not only protections.

Pols12 renamed this task from Special:PageTranslation lists "broken pages", but they are not broken to A translatable page should not be considered as broken when last change in history is a log entry.Apr 23 2020, 10:37 PM
Pols12 updated the task description. (Show Details)
Nikerabbit raised the priority of this task from Low to Medium.Apr 27 2020, 8:53 AM

Change 670826 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Move copy selected revtags to the new revision on move

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

The code to prevent this has been in place since 2012. But it may be that other issues with translatable page moving has caused these issues. My patch touches this code too, but it should not result in a change in behavior.

Change 670826 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Copy selected revtags for a new revisions with unchanged content

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

the page is listed under Broken pages section of Special:PageTranslation

This is fixed.

the text “This page has changes since it was last marked for translation.” is not displayed in top of the page

This is not fixed. I am not sure it is safe to suppress this. I'd recommend filing it as a separate task if it feels important.

Nikerabbit updated the task description. (Show Details)