Fomafix added a comment.

Not only the RDF export must have BCP 47 conform language codes, the HTML 
attribute lang also must have a BCP 47 conform language code. Simple 
<https://simple.wikipedia.org/> already uses the correct language code ´en´ for 
the content (`wgContentLanguage`). This language code should be used for the 
sitelinks. In HTML and in the RDF export. When 
https://phabricator.wikimedia.org/T43723 is fixed the language code for 
sitelinks to simple is `en`. If you want to change this to `en-x-simple` then 
create a separate task.

When `de-formal` and `nl-informal` are not conform to BCP 47 this should be 
changed. But not only for the RDF export. This must be changed everywhere where 
a HTML attribute lang is generated.

`de-formal` and `nl-informal` are only used in the user interface. They are not 
wanted as separate language for the label, description and alias in Wikidata. 
Therefore these language code should never occur in a RDF export.

When https://phabricator.wikimedia.org/T43723 is fixed your patch for the RDF 
export is superfluous.


TASK DETAIL
  https://phabricator.wikimedia.org/T105430

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Smalyshev, Fomafix
Cc: Fomafix, gerritbot, Smalyshev, Aklapper, daniel, mkroetzsch, jkroll, 
Wikidata-bugs, Jdouglas, aude, Manybubbles, JanZerebecki, Malyacko, P.Copp



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to