Page MenuHomePhabricator

Unsupported languages appear as CX suggestions in ULS
Closed, ResolvedPublicBUG REPORT

Description

When I click the ULS on the desktop, I sometimes see "شامي" ("Shami", Levantive Arabic, apc) as one of the languages listed in the "Missing in ..." line, which is added by CX, and in the little "Translate this page" panel.

צילום מסך מ־2023-05-02 10-43-50.png (460×742 px, 39 KB)

צילום מסך מ־2023-05-02 10-43-41.png (215×751 px, 27 KB)

I connect from Israel. According to CLDR, and consequently, ULS/language-data, Levantine Arabic is one of the languages spoken in Israel. It's correct in real life, too, but technically, it's incorrect for CX: there is no Wikipedia in this language, so showing it in this context is useless and misleading.

apc is just an example. CX must only suggest translations into languages in which there is a Wikipedia, and which are fully supported by CX.

(I actually believe that showing not-yet-fully-supported languages in ULS is a very good idea for the future, but it's too early for it with the current infrastructure.)

Event Timeline

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

[mediawiki/extensions/ContentTranslation@master] CX ULS languages entrypoint: Hide for unsupported languages

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

Change 924551 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX ULS languages entrypoint: Hide for unsupported languages

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

Confirmed fixed in production. Thank you!