Content Translation uses a limit system to encourage users to review the initial machine translation.
When considering the support for a mode on desktop to edit a single section we want the calculation to be applied to that section (even if additional parts of the article are loaded behind the scenes (to support cross-section references, etc.).
This ticket proposes to apply the limit system to the section scope when the editor is in such mode.
Note that there are plans to evolve the limit system. Thus code reuse and other improvements that make it easier for the rules to evolve without issues could be considered.
Derived Requirement
When using the desktop Content Translation editor in single-section translation mode, the machine translation (MT) limits must apply only to the section being translated, regardless of any background content loaded to support features like cross-section references. This ensures accurate enforcement of review requirements per section and prevents false limit calculations due to content outside the translated scope.
Test Steps
Test Case 1: Ensure MT Limit Applies Only to Translated Section
- Open CX in desktop mode via Special:ContentTranslation.
- Choose a source and target language (e.g., English → Hindi).
- Select an article and opt to translate a single section (e.g., “Production”).
- Let MT autofill the entire section.
- Do not make any edits to the MT content.
- Attempt to publish the section.
- ✅❓❌⬜ AC1: A warning or block appears indicating the MT usage limit is exceeded for the current section.
Test Case 2: Verify Limit Adjusts After Editing MT Content
- In the same section, manually edit or rephrase some MT sentences (reduce unchanged MT content to below threshold).
- Attempt to publish again.
- ✅❓❌⬜ AC2: The warning is dismissed, and the section is allowed to be published if MT usage is below the threshold.
Test Case 3: Confirm No MT Limit Error When Translating Manually
- Start translating a section without using MT (manual translation).
- ✅❓❌⬜ AC3: Publishing is allowed without triggering MT limit messages.
QA Results - TestWiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T317021#10959753 |
| 2 | ✅ | T317021#10959753 |
| 3 | ✅ | T317021#10959753 |


