In order to encourage users to review their translations, a warning will be shown when those exceed a certain limit (T190279). However, in some cases the amount of unmodified content may be so high that we want to prevent editors from publishing.
If the user exceeds a threshold (configurable per wiki, but with a default value of 99%), an error will be shown to the user when they try to publish. The threshold will be calculated for the whole document, and it will prevent publishing until the content is modified.
|After trying to publish||When checking the issue card|
The error will be triggered when the user tries to publish and the translation has a total percentage of unmodified content higher than the threshold. We may want to apply the threshold only when there is enough content to avoid confusions with false positives (e.g., publishing a one sentence article with a few images). We may need to track the progress of the user translation (T162113) to support this.
The publish button will become disabled until the user modifies the content enough.
After publishing an issue summary is shown:
Your translation cannot be published because it contains too much unmodified text.
The "View issues" option allows to expand the issue card showing the error:
Your translation contains <percentage>% of unmodified text
Automatic translation is provided only as a starting point. Make sure that the content is accurate and reads naturally in your language.
Your translation cannot be published without further editing.
Modifying the content enough to no longer meet the threshold, will reenable the publish button, and remove the representations of the issue (the issue summary and in the issue card).
Showing the message on the issue card was not completed.
Follow-up ticket: T203377: CX2: Additional details for too much unmodified content error