Page MenuHomePhabricator

The NLLB-200 Machine Translation support not working well in Setswana Section Translation tool
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

  • When you start a translation from English to Setswana using the Section Translation tool in a mobile device.
  • Choose the NLLB-200 Machine Translation support and pick the paragraph you want to translate.

What happens?:
The initial translation just shows the original content in English instead of displaying the initial translation in Setswana. As shown below.

image.png (2×1 px, 998 KB)

What should have happened instead?:
Choosing the NLLB-200 MT is meant to show the initial translation in Setswana.

Event Timeline

I tested NLLB-200 MT from en->tn using Content Translation and it seems working fine, while Section Translation fails with the following error:

POST https://cxserver.wikimedia.org/v2/translate/en/tn/NLLB-200 404
Error while translating segment SyntaxError: Unexpected token P in JSON at position 0
Pginer-WMF triaged this task as Medium priority.Jul 26 2022, 7:49 AM

I tested NLLB-200 MT from en->tn using Content Translation and it seems working fine, while Section Translation fails with the following error:

POST https://cxserver.wikimedia.org/v2/translate/en/tn/NLLB-200 404
Error while translating segment SyntaxError: Unexpected token P in JSON at position 0

The Central Kudish Section Translation is experiencing this same thing.

image.png (2×1 px, 950 KB)

This issue has been created as a regression from a patch that we merged last week. Will submit a patch about it today.

Change 817876 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX: Fix regression for MT provider labels

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

Change 817876 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Fix regression for MT provider labels

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

Change 818992 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20220801

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

Change 818992 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20220801

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

RebelAgent subscribed.

Screenshot_20220806-213209.png (1×720 px, 161 KB)
Thanks to everyone who worked on this issue, I tested NLLB-200 today and it is working, I believe the issue is solved.