Page MenuHomePhabricator

Pages with Scribunto content model get English content language and short description
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce:

  • Open a Lua module on any non-English project, eg de:Module:Musikcharts.
  • Check the short description from Wikidata in page information (central description).

What happens?:
The short description is Wikimedia module; seems to be based on the Page content language (English).

What should have happened instead?:
The German-language description Wikimedia-Modul should be displayed, page content language should be German.

See also: T126308: Scribunto console is in English instead of the site language

Event Timeline

In addition to the "Central description" ("Zentrale Beschreibung") the "Page information" ("Seiten­informationen") also directly specifies "Page content language" ("Seiteninhaltssprache"):

Which is clearly "en" and not "de".

Isnt the page language being en correct? The lua language is in english, all the keywords are in english.

Restricted Application added a subscriber: alaa. · View Herald TranscriptThu, Feb 5, 5:31 PM

Edit: refering only to page language Uzume mentioned

Note, this is due to 3a28ee5.

The same thing applies to js, css and json.

The module documentation is most likely not in English, but more importantly, the whole website is not; it makes no sense to show a page description in a language that is different from the overall language, no matter which language the content in it is.

Sorry i followed a link here from discord and assumed this was only about page language. I agree that short description probably shouldnt deoend on page language.

SD0001 subscribed.

Wikibase could use the wgContentLanguage (i.e, site content language instead of page content language) for short descriptions.