Special:PagePreparation, findable across multilingual wikis where Translate extension is installed, has been outdated since a long. TranslateTagger tries to resolve these problems, and it would be more convenient to have the work incorporated into the MediaWiki extension itself.
- Translate Extension repo: https://gerrit.wikimedia.org/g/mediawiki/extensions/Translate
- Translate tagger repo: https://github.com/indictechcom/TranslateTagger
Scope
Actually enabling this on production wiki's will be reviewed/done in a separate ticket
QA Plan
This will have to be tested locally since there are further considerations before we can enable it on production
Set the configuration variable:
$wgTranslateEnableTranslateTaggerAPIIntegration = 'https://translatetagger.toolforge.org/api/convert';
- Verify that markup structure matches what's displayed on https://translatetagger.toolforge.org/
- Create a wiki page with various wikitext markup such as headings, links etc.
- Try to mark it up via Special:PagePreparation
- Compare the markup with the markup generated on https://translatetagger.toolforge.org/
- Handles API failures properly
- Put the incorrect URL for the translate tagger API
- Make the API call
- Ensure that a proper error message is displayed to the user.
- Ensure that the translate tagger button is not displayed if configuration is not set
- Remove the $wgTranslateEnableTranslateTaggerAPIIntegration configuration
- On Special:PagePreparation ensure that the button to mark up with translate tagger is hidden.



