From b7829428c9769bff10f946b9fb04f82b1a9a8296 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. (grafted from 065a26d8b5779ca5c8c2486509352c8c48190a33) --HG-- branch : develop --- .../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 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; }