Wikidata:Property proposal/POSIX locale identifier

POSIX locale identifier edit

Originally proposed at Wikidata:Property proposal/Authority control

Descriptionidentifier for a language per the POSIX standard, as defined in ISO/IEC 9945 and ISO/IEC 15897.
Data typeExternal identifier
Domainlanguage (Q34770), dialect (Q33384), ethnolect (Q951873)
Allowed values/[a-z]{2,3}(_[A-Z]{2,3})?/
Example 1Brazilian Portuguese (Q750553) → pt_BR
Example 2English (Q1860) → en
Example 3British English (Q7979) → en_GB
Example 4American English (Q7976) → en_US
Example 5Peninsular Spanish (Q7162990) → es_ES
SourceICU list
Number of IDs in source620
Expected completenesseventually complete (Q21873974)
See alsoIETF language tag (P305)
Distinct-values constraintyes

Motivation edit

The POSIX locale identifier is commonly used, especially in computing circles; indeed, many language items (including several of the examples above) already include the corresponding POSIX identifier as an alias. We should encode them as actual properties. Waldyrious (talk) 22:33, 4 January 2021 (UTC)[reply]

Discussion edit