Skip to content

Commit

Permalink
Say more about the CLDR as source of QLocale's data
Browse files Browse the repository at this point in the history
Say where it comes from and that it's a linguistic pragmatist.
That is, it records de facto usage, not de jure.

Prompted by a discussion around the discrepancy between what we use
for Spanish number formats and what the Royal Spanish Academy of
Language mandates, taken up on the CLDR mailing list.

https://groups.google.com/a/unicode.org/g/cldr-users/c/BbpPgNeihOU/m/HPzB-jl8CgAJ
See also: https://unicode-org.atlassian.net/browse/CLDR-15508

Task-number: QTBUG-127966
Change-Id: I487ab9bd9c348a26ab5e63381014202a5be2dd14
Reviewed-by: Paul Wicking <[email protected]>
  • Loading branch information
ediosyncratic committed Aug 14, 2024
1 parent 4a44a8a commit 287f309
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/corelib/text/qlocale.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,24 @@
\note For the current keyboard input locale take a look at
QInputMethod::locale().

\section1 Appropriateness of the formats

QLocale's data is based on Common Locale Data Repository v45.

This data is published by The Unicode Consortium, who aim to follow
customary, common use by writers of each language, in each script, in each
territory for which data is given. This may in some cases differ from what
is recognized as official, depending on how widely that official standard is
followed in practice.

For example, although the relevant international standard (from the BIPM)
mandates a thin non-breaking space as the separator between groups of digits
in numbers, when they are split up to aid readability, and many
jurisdictions have adopted this as their official standard for the
formatting of numbers, many locales in fact have a traditional way of
formatting numbers with punctuators separating groups of digits. CLDR, and
thus QLocale, follows this common usage rather than the official standard.

\section1 Matching combinations of language, script and territory

QLocale has data, derived from CLDR, for many combinations of language,
Expand Down

0 comments on commit 287f309

Please sign in to comment.