diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2022-04-22 14:43:26 +0200 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-04-27 17:03:54 +0200 |
| commit | 7a7f2547f3e9ddf4e50decd85189200033193177 (patch) | |
| tree | 93f9ac4b3c242abaa88fbc1f2743fd63203685f7 /src/gui/platform/unix/qgenericunixservices.cpp | |
| parent | bf96f0eea0c926f96418bc1f870d66c33511f5f9 (diff) | |
Return more specific entries before less in QLocale::uiLanguages()
The documentation overtly listed entries in this order but the code
gave less specific entries before more specific (and the tests
verified the same). This is now reversed.
[ChangeLog][QtCore][QLocale] uiLanguages() now prefers more specific
locale names over less specific ones, matching its own documentation,
except where the system backend supplies them in some other order.
This means a translation with the expected script and/or territory as
well as language will be used in preference to a generic one for just
the language, rather than only as a fall-back when the more generic
one is missing.
Fixes: QTBUG-102796
Change-Id: I3c7b3627afb51246df5a6ad0230e23b60af78071
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/platform/unix/qgenericunixservices.cpp')
0 files changed, 0 insertions, 0 deletions
