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 as illustrated belowwhen they try to publish. ThisThe threshold will be calculated for the whole document, and it will prevent publishing until the content is modified.
{F15945703}
|After trying to publish|When checking the issue card|
|{F16217567}|{F16217146}|
**Trigger**
The error will be triggered when the user tries to publish and the translation has aa 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., When we show this error,publishing a one sentence article with a few images). we won't showWe may need to track the warning about too much MT (T190279) since that would be redundantprogress of the user translation (T162113) to support this.
We want to wait until a certain amount of content is added, to avoid confusions with false positives (e.g., showing the warning after initially adding a one-word section title that was perfectly translated by MT). We may need to track the progress of the user translation (T162113) to support this.
**Associated elementThe publish button will become disabled until the user modifies the content enough.
**Messages**
The threshold will evaluate the overall percentage of modified text, and associate the warning with the title section as a representation of the whole article (like in the image above).
**Message**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.
> [Learn more]
**Actions**
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).