Add QTranslator test for script-incompatible language truncation
Amends commit 0278a80d6876f38bb37f1d504e6b24a3512efb7a - I developed the new test as part of adapting the earlier change to 6.8. Pick-to: 6.9 Task-number: QTBUG-131894 Change-Id: I711e62db7e35fa26c396498354ffbb5aa23920a8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
4eb5c735aa
commit
dabc113cc8
@ -187,6 +187,13 @@ void tst_QTranslator::loadLocale_data()
|
||||
<< QLocale::system()
|
||||
<< QStringList{"en-AU", "en-NZ", "de-DE", "en-GB"};
|
||||
QTest::addRow("System, Taiwan") << QLocale::system() << QStringList{"zh-TW", "zh"};
|
||||
|
||||
// This tests that, when "just the language" is not a faithful
|
||||
// representation of the entry it's derived from, we try later entries
|
||||
// before it.
|
||||
QTest::addRow("System, multi-script language")
|
||||
<< QLocale::system()
|
||||
<< QStringList{"pa-Arab-GB", "pa-PK", "en-GB"};
|
||||
}
|
||||
|
||||
void tst_QTranslator::loadLocale()
|
||||
|
Loading…
x
Reference in New Issue
Block a user