qt6-bb10/tests/auto/corelib/kernel/qtranslator
Edward Welbourne 91e70f239e Give QLocale::uiLanguages() a separator parameter
It has always returned dash-joined forms of the locale names, and
callers who need an underscore-joined form have been obliged to
replace('-', '_') before using them. Given that everything it adds to
the list comes from QLocaleId methods that accept a separator, it's
trivial to let it offer the same choice to its callers and save them
this hassle.

Amended code in QTranslater and QMimeType to save them that hassle.

[ChangeLog][CoreLib][QLocale] QLocale::uiLanguages() now lets the
caller choose what separator to use between the tags that make up each
locale-identifier in the list returned.

Change-Id: I91fcd0b988d9a64e0e9ad9e851f6cb8c1be8ae50
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-08-16 16:25:48 +02:00
..
.gitignore
CMakeLists.txt Correct feature test in tst_qtranslator's CMake config 2023-07-27 15:09:24 +02:00
dependencies_la.qm
dependencies_la.ts
hellotr_empty.qm Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
hellotr_empty.ts Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
hellotr_la.qm QTranslator: Expose language of translation file 2020-02-10 15:14:55 +00:00
hellotr_la.ts
msgfmt_from_po.qm
tst_qtranslator.cpp Give QLocale::uiLanguages() a separator parameter 2023-08-16 16:25:48 +02:00