From e23e3ece41b79a008cd9568e44be484309fe08e3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 29 Dec 2019 14:37:46 +0200 Subject: [PATCH] Beside usage similar to that of English, the colon has other functions. Several compatibility forms for Chinese and Japanese typography are encoded in Unicode. --HG-- branch : release --- .../TranslationsTest/tst_tslocaletranslation.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/test/TranslationsTest/tst_tslocaletranslation.cpp b/src/test/TranslationsTest/tst_tslocaletranslation.cpp index 0c0f52d40..7dbd46412 100644 --- a/src/test/TranslationsTest/tst_tslocaletranslation.cpp +++ b/src/test/TranslationsTest/tst_tslocaletranslation.cpp @@ -217,7 +217,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; }