Page MenuHomePhabricator

Entry point to suggest missing languages gets confused by "no" code
Closed, DuplicatePublic

Description

Based on user input, there seems to be an issue with the languages suggested as missing (T290972 ) by the language selector on desktop for the case of Norwegian (no). As illustrated by the video below, an article that is available for both versions of Norwegian (Bokmål and Nynorsk) is shown as missing for "Norwegian".

The complexity of the iso codes for Norwegian (and how they are supported in our systems) may be in the origin of this issue. In case it helps to clarify:

  • Norwegian with the "no" code represents the general language.
  • Norwegian Bokmål (nb) and Norwegian Nynorsk (nn) have their own codes to represent the specific variants.
  • Norwegian Wikipedia (using "no" for their domain: https://no.wikipedia.org/) is written using the Bokmål (nb) version since that seems the most common variant of the language, and the language code for the content is "nb" (which differs from the "no" domain)

For some reason the user seems to have "no" among their frequent languages and our system assumes the article does not exist for such version since it is not matching the "nb" version which exists for Norwegian Wikipedia.

As part of this task we may want to verify that the behaviour for the mobile version of this entry point (T298032) works as expected too.

Event Timeline

@Patafisik Those are not directly related, no.

I'm pretty sure this task is a duplicate of T322799, though. The feature that suggest "norsk" in the ULS comes from Content Translation as far as I'm aware (its CSS class is "cx-uls-relevant-languages-banner"). Could you confirm, @Pginer-WMF?