diff --git a/src/test/TranslationsTest/tst_tslocaletranslation.cpp b/src/test/TranslationsTest/tst_tslocaletranslation.cpp index 6f0f85047..cdb381d76 100644 --- a/src/test/TranslationsTest/tst_tslocaletranslation.cpp +++ b/src/test/TranslationsTest/tst_tslocaletranslation.cpp @@ -215,7 +215,18 @@ void TST_TSLocaleTranslation::TestPunctuation() { testFail = true; - if (locale == QLatin1String("el_GR") && cSource == QLatin1Char('?') && cTranslation == QLatin1Char(';')) + if (locale == QLatin1String("el_GR") + // Greek question mark + // https://en.wikipedia.org/wiki/Question_mark#Greek_question_mark + && (cSource == QLatin1Char('?') && cTranslation == QLatin1Char(';'))) + { + testFail = false; + } + else if (locale == QLatin1String("zh_CN") + // Beside usage similar to that of English, the colon has other functions. Several compatibility + // forms for Chinese and Japanese typography are encoded in Unicode. + // https://en.wikipedia.org/wiki/Colon_(punctuation)#Usage_in_other_languages + && (cSource == QLatin1Char(':') && cTranslation == QString(":"))) { testFail = false; }