User:DannyS712/TranslationBot

I am filing almost identical requests for bot approval on a bunch of wikis, and figured I should put some of the details in a central location.

The summary

I want to get approval for a bot with translation admin rights that will automatically mark pages for translations if and only if the latest version is identical to the version that is already in the translation system, i.e. only pages with no "net" changes in the pending edits.

The task

Via a translation admin bot, mark for translation any page that

  • is already in the page translation system
  • has edits since the last mark (i.e. pending changes, showing up on Special:PageTranslation under "Pages with pending changes")
  • has the same exact content in the latest version and the version that was previously marked for translation (i.e. marking the page for translation should not invalidate any existing translation units, or add a new ones)
The reasoning

Its annoying when a translation admin goes to the list and sees a whole bunch (hundreds) of pages waiting, which can frequently not actually have a changes to mark for translation.

The implementation

Using database queries to find the pending pages (based on the same logic used to list them on the special page) and the new API module that just got added for doing the marking (see phab:T235397)

Discussions