User Story
As a staff member administering the Community Wishlist I would like to be able to easily prepare a wish for translation so that I don't have to fully do it manually.
CWS Manager is a gadget used by staff to manage previous Community Wishlist Surveys.
A summary of its functionality can be found at https://meta.wikimedia.org/w/index.php?title=Community_Wishlist_Survey/Staff_instructions&oldid=26624729#CWS_Manager_gadget
The CWS Manager opens a dialog from which to choose the action to take, but as there is now only one action it's easier to not have a dialog window and just start the process when the button is clicked.
Acceptance criteria:
A new 'Prepare for translation' button is added, visible only to WMF users and positioned near the 'Edit wish' button that does the following:
Steps:
- Open the wish for editing in wikitext mode
- Adds <translate> tags to the page around the applicable fields ("title", "problem", "otherproject" and "audience")
For translation admins:
When marking a wish page for translation at Special:PageTranslation, the gadget should:
- Uncheck the "Allow translation of page title" option, if it was by default checked
- Rationale is that we store the wish title as a field in the wish template, and we don't want to duplicate translator's work.
Designs:
The position of the new button is not in the current Figma designs.
Details for QA:
- Check if this is only available to staff accounts.
- Check that the button only shows on wishes that have not yet been setup for translation.
- Make sure if translation tags are applied correctly.
![Screenshot 2024-06-24 at 10-39-19 Wikimedia Foundation [...].png (677×92 px, 13 KB)](https://phab.wmfusercontent.org/file/data/fzoawt2e4roqfcjtuqrx/PHID-FILE-vvtmat4rzb26jhemeelc/Screenshot_2024-06-24_at_10-39-19_Wikimedia_Foundation_%5B...%5D.png)