Page MenuHomePhabricator

Language not available for a new translation when used as target for suggestions
Closed, ResolvedPublic

Description

When accessing Section translation on test wiki, suggestions are shown for the English -> Bengali language pair. Currently, when starting a new translation is not possible to select Bengali to search an article to translate from this language. Searching for "Bengali" to select it, leads to no results:

test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 6_7_8).png (1×750 px, 35 KB)

The expected behaviour would be for Bengali to be available to be selected.

My guess is that the default target langue is Bengali and the source selection is prevented for Bengali to avoid a language pair with the same value for both source and target. However, a better approach to prevent this is to swap source and target values when this happens (similar to T287855). That is, allow Bengali to be selected and make English (or whichever language was the source) to become the new target language. In this way, users have always all available options to select and invalid selections are avoided.

Event Timeline

Change 859601 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] SX: Supported language codes for language selector

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

Change 859601 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Supported language codes for language selector

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

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

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

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

Change 867113 merged by jenkins-bot:

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

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

Test status: QA PASS

Able to select Bengali as source or as target