ContentTranslationEnableMT config parameter not taken into account for mobile translations
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
ngkountas
May 28 2025, 8:43 AM
Referenced Files
F62295683: 2025-06-11_12-49-33.png
Jun 11 2025, 9:28 PM
F62294423: 2025-06-11_09-41-57.png
Jun 11 2025, 9:28 PM
F62295675: 2025-06-11_12-49-23.png
Jun 11 2025, 9:28 PM
F62294421: 2025-06-11_10-02-32.png
Jun 11 2025, 9:28 PM
F62294418: 2025-06-11_09-41-43.png
Jun 11 2025, 9:28 PM
F62294416: 2025-06-11_09-41-21.png
Jun 11 2025, 9:28 PM

Description

Steps to replicate the issue (include links if applicable):

  1. Try to translate an article from en to de on desktop.
  2. You should notice that MT is not available - because ContentTranslationEnableMT is set to false for the dewiki in production
  3. Try to translate an article from en to de on mobile (go all the way to the "Pick a sentence" step).

What happens?:
MT is available.

What should have happened instead?:
MT should not be available both on desktop and mobile for wikis that have ContentTranslationEnableMT set to false.

Derived Requirement
Ensure that the ContentTranslationEnableMT configuration parameter is respected on both desktop and mobile platforms. If machine translation (MT) is disabled for a target wiki (e.g., dewiki), MT should not be available at any step of the translation workflow—regardless of device or skin.

Test Steps

Test Case 1: Verify MT is not available on desktop when ContentTranslationEnableMT is false

  1. Open the Content Translation tool on desktop (vector or desktop mode).
  2. Select a source language (e.g., English) and a target language where MT is disabled (e.g., German/dewiki).
  3. Select any article and proceed to the translation interface.
  4. ✅❓❌⬜ AC1: Confirm that machine translation is not offered as an option in the sidebar or under the source paragraph and the initial sentence or paragraph appears as unmodified source text (no MT prefill or suggestion)..

Test Case 2: Verify MT is not available on mobile when ContentTranslationEnableMT is false

  1. Open the Content Translation tool on a mobile device or using responsive design emulation in Chrome DevTools (emulate Pixel 5 or iPhone 13).
  2. Select source: English; target: German (dewiki).
  3. Select an article and proceed through to the "Pick a sentence" step.
  4. ✅❓❌⬜ AC2: Confirm that machine translation is not offered during sentence selection or in any UI element and the tool does not show any MT engine name (e.g., Google, Apertium, etc.) or prefilled translations.

QA Results - Test Wiki/Prod

ACStatusDetails
1T395422#10906698
2T395422#10906698

Event Timeline

SBisson moved this task from Needs Triage to Translation editor on the ContentTranslation board.
SBisson moved this task from Incoming to In-progress on the LPL Hypothesis board.

Change #1151733 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] Mobile editor: respect wgContentTranslationEnableMT

https://gerrit.wikimedia.org/r/1151733

Change #1151733 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Mobile editor: respect wgContentTranslationEnableMT

https://gerrit.wikimedia.org/r/1151733

Change #1152084 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] User notice when MT is disabled

https://gerrit.wikimedia.org/r/1152084

Second part: "user notice" is ready for code review

Change #1152084 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] User notice when MT is disabled

https://gerrit.wikimedia.org/r/1152084

Change #1152798 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250602

https://gerrit.wikimedia.org/r/1152798

Change #1152798 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250602

https://gerrit.wikimedia.org/r/1152798

@SBisson Confirmed that ContentTranslationEnableMT is false as seen in the screenshots for PROD but not Test Wiki. I will move this to Sign-off. Thanks for all your work!

Test Result - Test Wiki|Prod

Status: ✅ PASS
Environment: Test Wiki/PROD
OS: macOS Sequoia 15.5
Browser: Chrome 136
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://test.wikipedia.org/w/index.php?title=Special:ContentTranslation&from=en&to=de&sourcesection=Background&page=Apple%20ProDOS
https://test.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&from=en&to=de&sourcesection=Background&page=Apple%20ProDOS
https://de.wikipedia.org/w/index.php?title=Spezial:Inhalts%C3%BCbersetzung&from=en&page=Liquid-propellant+rocket&sourcesection=Types&to=de
https://de.m.wikipedia.org/w/index.php?title=Spezial:Inhalts%C3%BCbersetzung&from=en&page=Liquid-propellant+rocket&sourcesection=Types&to=de

Test Steps

Test Case 1: Verify MT is not available on desktop when ContentTranslationEnableMT is false

  1. Open the Content Translation tool on desktop (vector or desktop mode).
  2. Select a source language (e.g., English) and a target language where MT is disabled (e.g., German/dewiki).
  3. Select any article and proceed to the translation interface.
  4. AC1: Confirm that machine translation is not offered as an option in the sidebar or under the source paragraph and the initial sentence or paragraph appears as unmodified source text (no MT prefill or suggestion).
Test WikiPROD Desktop
2025-06-11_09-41-21.png (489×1 px, 156 KB)
2025-06-11_09-41-43.png (846×1 px, 306 KB)

Test Case 2: Verify MT is not available on mobile when ContentTranslationEnableMT is false

  1. Open the Content Translation tool on a mobile device or using responsive design emulation in Chrome DevTools (emulate Pixel 5 or iPhone 13).
  2. Select source: English; target: German (dewiki).
  3. Select an article and proceed through to the "Pick a sentence" step.
  4. AC2: Confirm that machine translation is not offered during sentence selection or in any UI element and the tool does not show any MT engine name (e.g., Google, Apertium, etc.) or prefilled translations.
Test WikiTest Wiki 3 dotPROD MobilePROD Mobile 3 dot
2025-06-11_10-02-32.png (932×1 px, 166 KB)
2025-06-11_12-49-23.png (1×761 px, 128 KB)
2025-06-11_09-41-57.png (921×1 px, 179 KB)
2025-06-11_12-49-33.png (1×1 px, 109 KB)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.