Page MenuHomePhabricator

uppercase schema:inLanguage on Wikidata Query Service
Closed, DuplicatePublic


Shouldn't it be "nds-nl" instead of "nds-NL" (8950 current uses)

lang() on labels gives "nds-nl" (sample).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

The language code for links works this way (see SiteLinksRdfBuilder class):

  • take the value in the database site matrix
  • if we have custom name configured for it, use that
  • otherwise, apply wfBCP47 function to it and use that

Looks like wfBCP47('nds-nl') returns nds-NL. Since this function says it returns the normalized tag, I am inclined to believe it.