Help
Difference between revisions of "Langtags"
m (Yug moved page Help:Languages codes and LinguaLibre to Help:Langtags) |
|||
Line 2: | Line 2: | ||
* For the name of pages containing lists in the list namespace (in the format [[List:ISO/List name]], with ISO the iso6369-3 code); | * For the name of pages containing lists in the list namespace (in the format [[List:ISO/List name]], with ISO the iso6369-3 code); | ||
* To forge Wikimedia Commons's category names | * To forge Wikimedia Commons's category names | ||
+ | |||
+ | == Current languages coverage == | ||
+ | <br clear="all"> | ||
+ | <query _pagination="20" languageLabel="English" WD="Wikidata Qid" language="LL item" isoCode="ISO 639-3" count="Records count"> | ||
+ | select ?languageLabel ?WD ?language ?isoCode (COUNT(?record) AS ?count) | ||
+ | where { | ||
+ | ?record prop:P2 entity:Q2 . | ||
+ | ?record prop:P4 ?language . | ||
+ | ?language prop:P12 ?WD . | ||
+ | ?language prop:P13 ?isoCode . | ||
+ | SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .} | ||
+ | } | ||
+ | GROUP BY ?languageLabel ?language ?WD ?isoCode | ||
+ | ORDER BY DESC(?count) | ||
+ | </query> | ||
== Switching to other code ? == | == Switching to other code ? == |
Revision as of 14:52, 26 January 2019
Lingua Libre uses nor ISO 639-3 nor BCP47 but Wikidata Qids as internal identifier for a language. Currently, ISO639-3 codes are used in two cases:
- For the name of pages containing lists in the list namespace (in the format List:ISO/List name, with ISO the iso6369-3 code);
- To forge Wikimedia Commons's category names
Current languages coverage
Switching to other code ?
Changing the code would affect only those two parts of the process. If we switch from one language tag to an other, we would have to:
- Add a new property BCP47 locally as you suggested (a bot can import them from Wikidata);
- Rename all local lists (can be made by hand, we don't have many lists for now on);
- Rename all existing Wikimedia Commons categories and move all the audio recordings (a bot there is required);
Other notable codes
- BCP47 - prefered langtag in computational fields
- ISO 639-3 - most known langtag online
- Ethnologue / SIL codes (10th–14th editions)
- Glottolog codes