Wikimedia's machine translation service should be used to provide suggestions for translations (in much the same way as is done on Translatewiki.net).
(Details t.b.d.)
| • Prtksxna | |
| Oct 8 2018, 2:42 AM |
| F66774885: mockup.v4.png | |
| Oct 21 2025, 5:31 PM |
| F66765519: mockup-v2.png | |
| Oct 20 2025, 7:15 AM |
| F66750972: image.png | |
| Oct 14 2025, 11:13 PM |
| F66750380: SVGtranslate-machine-suggestion-mockup-v2.png | |
| Oct 14 2025, 5:22 PM |
Wikimedia's machine translation service should be used to provide suggestions for translations (in much the same way as is done on Translatewiki.net).
(Details t.b.d.)
I m trying to help with this task. here is a proposal
UI: mockup:
3.user must intentionally accept translation before submitting
Code
For a technical perspective, going through the repo and the Mint service:
hope it makes sense
please comment. thanks!
Would be good to have it remember if "Suggestion machine translation" was selected between an individuals users sessions.
James
When checking the "Suggest machine translation" would the text fields then get filled with the suggestions? (As a side note, it'd be good to show some visible loading state at that point.) Once the suggestions are in the text fields, what is the difference between "Accept Suggestions" and "Submit"? Or does it mean that the suggestions will be shown e.g. below each field, and the accept button will move them into the fields?
Note also that some fields may already have values, in which case the suggestions should ignore those fields (i.e. not send them for translation, and not fill them with anything, as we assume any existing value has been checked and approved by a human).
The way Translatewiki.net does it is to show the machine translations near the text field, and they can be copied in by clicking them:
in any case, i propose to
3.a add the machine translation only when the text box is empty (no previous manual addition)
3.b change the background of machine translated box to light green to clearly indicate the boxes which are suggestions from the service
attaching a new mockup
I am not sure it makes sense, because the case for machine translation will vary based on the language, and also the type of sentences translated (for instance, specific semantic such as medical language is harder to translate than plain conversational english)
in any case i can add this feature in a future version
difference between "Accept Suggestions" and "Submit": i want to make sure the acceptance of machine translation is intentional to ensure the quality. I can remove the "accept suggestions" button and add a warning text box instead.
The warning message you have there sounds good. It does sound like a user would need to click first the 'Accept suggestions' button and then the 'Submit' one.
Also, note that there are currently no buttons at all at the bottom of the form! The warning should I think go up at the top. The button for uploading to Commons is the one at top right, labelled 'Upload to Commons'.
I am not sure i understand the use case when a manual translation would already be in the box: is it if a user starts translating manually then ticks the 'suggest machine translation' ?
Someone might've started translating an image, and done some of the labels, and then uploaded the file. This would leave some labels blank in that language, so the next time someone loads that file, there would be some already done and some left to do.
3.a add the machine translation only when the text box is empty (no previous manual addition)
Perfect.
3.b change the background of machine translated box to light green to clearly indicate the boxes which are suggestions from the service
Great idea. Do note however that we shouldn't rely solely on color to convey state, so perhaps a note under the input box could be good as well. Although that would make the whole form a lot taller so perhaps not! Bold the field's label maybe? And at the top have a message that says something about "Please check the highlighted labels" or something? I'm not sure.
remember if "Suggestion machine translation" was selected between an individuals users sessions.
That might be useful, but I agree that for the first iteration it's probably not worth worrying about. Rather than a checkbox, I think make it a button, and users then click it when they want to fetch the machine translations. This would also reduce spurious requests for machine translations and so make the it all feel a bit faster.
Here is what it could look like with all comments taken into account:
merge request (draft)
Priority:
implementing api call to cxserver to get translated field
Secondary implementation: