libcalamares: repair locale tests for Qt6 compatibility

This commit is contained in:
Adriaan de Groot 2023-09-03 21:05:07 +02:00
parent 49d449c211
commit bc9d5aae58

View File

@ -230,7 +230,8 @@ LocaleTests::testTranslatableConfig2()
continue; continue;
} }
// Could be QVERIFY, but then we don't see what language code fails // Could be QVERIFY, but then we don't see what language code fails
QCOMPARE( ts1.get( language ) == QString( "description (language %1)" ).arg( language ) ? language : QString(), QCOMPARE( ts1.get( QLocale( language ) ) == QString( "description (language %1)" ).arg( language ) ? language
: QString(),
language ); language );
} }
QCOMPARE( ts1.get( QLocale( QLocale::Language::Serbian, QLocale::Script::LatinScript, QLocale::Country::Serbia ) ), QCOMPARE( ts1.get( QLocale( QLocale::Language::Serbian, QLocale::Script::LatinScript, QLocale::Country::Serbia ) ),