The logic to mark translatable pages for translation lives in the PageTranslationSpecialPage. This makes it difficult for it to be used from elsewhere such as a command line script or API.
Move this code to a separate service.
The logic to mark translatable pages for translation lives in the PageTranslationSpecialPage. This makes it difficult for it to be used from elsewhere such as a command line script or API.
Move this code to a separate service.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | abi_ | T354473 Transfer translations of resolutions from Meta-Wiki to Foundation Governance Wiki (foundation.wikimedia.org) | |||
Resolved | abi_ | T347155 Import metadata and automatically mark page for translation when importing translatable bundles | |||
Open | None | T351374 Improve Translatable Pages based on research input | |||
Resolved | Feature | tstarling | T235397 Add API module to "mark a page for translation" | ||
Resolved | abi_ | T347931 Move code to mark page for translation from PageTranslationSpecialPage to a service | |||
Resolved | BUG REPORT | abi_ | T351273 Revisions for unit markers addition are not longer autopatrolled |
Change 960183 had a related patch set uploaded (by Abijeet Patro; author: Tacsipacsi):
[mediawiki/extensions/Translate@master] Create TranslatablePageMarker service
Change 963017 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] Add service TranslatablePageMarker
Change 964413 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TransaltablePageMarker: Move validateUnitIds to service
Change 964414 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Move prepareTranslationUnits to service
Change 964423 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] Add TranslatablePageMarker service
Change 963017 abandoned by Abijeet Patro:
[mediawiki/extensions/Translate@master] Add service TranslatablePageMarker
Reason:
Went in the wrong direction.
Change 964413 abandoned by Abijeet Patro:
[mediawiki/extensions/Translate@master] TransaltablePageMarker: Move validateUnitIds to service
Reason:
Went in the wrong direction.
Change 964414 abandoned by Abijeet Patro:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Move prepareTranslationUnits to service
Reason:
Went in the wrong direction.
Change 964884 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] Introduce TranslatablePageMarkOperation
Change 964922 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarkOperation: Add method to identify translation units
Change 964967 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarkOperation: Move method to validate unit names
Change 965710 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarkOperation: Add priority language information
Change 965738 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Move method to handle priority languages
Change 965859 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Move method to mark page for translation
Change 965864 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Extract code to a add log entry method
Change 966128 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Refactor method to save section markers
Change 969072 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageStore: Move title cache invalidation into store
Change 964423 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Add TranslatablePageMarker service
Change 964884 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Introduce TranslatablePageMarkOperation
Change 964922 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Add method to identify translation units
Change 964967 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Move method to validate unit names
Change 970651 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] Introduce TranslatablePageSettings
Change 965864 abandoned by Abijeet Patro:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Extract code to a add log entry method
Reason:
Makes code more difficult to follow.
Change 965710 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageMarkOperation: Add priority language information
Change 965738 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Move method to handle priority languages
Change 965859 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Move method to mark page for translation
Change 970911 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] Add tests for TranslatablePageMarker
Change 966128 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Refactor method to save section markers
Change 969072 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageStore: Move title cache invalidation into store
Change 971193 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Some more tweaks
Change 970651 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Introduce TranslatablePageSettings
Change 970911 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Add tests for TranslatablePageMarker
Change 971193 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] TranslatablePageMarker: Some more tweaks
The refactored code has been deployed on translatewiki.net. I tested by marking a page for translation with priority languages, and various other options. It appears to work as expected.
Thanks to @Tacsipacsi for initiating work on this.
Leaving it open until the patches ride the train next week.
There was one issue identified as part of this refactoring which has been fixed. Now marking this as resolved.
Change 960183 abandoned by Nikerabbit:
[mediawiki/extensions/Translate@master] Create TranslatablePageMarker service
Reason: