The gadget "LinguaImporter" allows to import language from a Wikidata ID. Currently only the label (and property information) are imported. I think the description and the alias should also be imported. Alias are really a plus when we are looking for a language. For example, should we search (in French) for "guadeloupéen" or "créole guadeloupéen", etc?
Description
Related Objects
- Mentioned In
- T232299: LinguaImporter gadget adds MediaType=audio
T274511: LinguaLibreBot : [TBD] Find a way to catch missed recordings over extended "out of service" periods. - Mentioned Here
- T232299: LinguaImporter gadget adds MediaType=audio
T233917: Gadget > LinguaImporter : Add link to the associated Commons category
Event Timeline
For the description, I guess it is possible to use
newItem.descriptions = wikidataItem.getDescriptions();
at line 171.
Yet, for aliases, it seems it is not yet easily possible. Maybe it has changed in the last couple of years.
The library creating these items is a module inside RecordWizard.
I added descriptions and aliases similarly to labels (it does exist in the library), but only the descriptions were added. I guess there is an issue with the serialization, particularly since aliases are a dictionary of lists instead of simply a dictionary; I continue searching.
It is missing the small part about aliases in rw.wikibase.Item.prototype._buildFingerprint; I add it.
The missing part about aliases was added in RecordWizard commit 11b794ce.
LinguaImporter now imports descriptions and aliases from Wikidata, see this example for the language Laki (that I imported just after the code change), called Lekî in Kurdish but also known as Lak or Leky.