const QString &sourceLanguage, const QString &targetLanguage,
UpdateOptions options, bool *fail)
{
+ for (int i = 0; i < fetchedTor.messageCount(); i++) {
+ const TranslatorMessage &msg = fetchedTor.constMessage(i);
+ if (!msg.id().isEmpty() && msg.sourceText().isEmpty())
+ printErr(LU::tr("lupdate warning: Message with id '%1' has no source.\n")
+ .arg(msg.id()));
+ }
+
QList<Translator> aliens;
foreach (const QString &fileName, alienFiles) {
ConversionData cd;
.*/lupdate/testdata/good/parsecpp2/main.cpp:120: //% cannot be used with tr\(\) / QT_TR_NOOP\(\)\. Ignoring
.*/lupdate/testdata/good/parsecpp2/main.cpp:123: //% cannot be used with translate\(\) / QT_TRANSLATE_NOOP\(\)\. Ignoring
.*/lupdate/testdata/good/parsecpp2/main.cpp:126: Discarding unconsumed meta data
+lupdate warning: Message with id 'no_source' has no source\.
<!DOCTYPE TS>
<TS version="2.0">
<context>
+ <name></name>
+ <message id="no_source">
+ <location filename="main.cpp" line="132"/>
+ <source></source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>NameSpace::ToBeUsed</name>
<message>
<location filename="main.cpp" line="113"/>