diff options
Diffstat (limited to 'src/linguist/lupdate/cpp.cpp')
-rw-r--r-- | src/linguist/lupdate/cpp.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/linguist/lupdate/cpp.cpp b/src/linguist/lupdate/cpp.cpp index b8bb1e859..6f720f27c 100644 --- a/src/linguist/lupdate/cpp.cpp +++ b/src/linguist/lupdate/cpp.cpp @@ -1397,6 +1397,7 @@ STRING(QCoreApplication); STRING(UnicodeUTF8); STRING(DefaultCodec); STRING(CodecForTr); +STRING(Latin1); bool CppParser::matchEncoding() { @@ -1411,7 +1412,8 @@ bool CppParser::matchEncoding() yyTok = getToken(); return true; } - yyMsg() << qPrintable(LU::tr("Unsupported encoding Latin1\n")); + if (yyWord == strLatin1) + yyMsg() << qPrintable(LU::tr("Unsupported encoding Latin1\n")); return false; } |