Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2, 4.7.2
-
None
-
688d6db785af821e76b9e436ef9d9cbea95ef5ad
Description
When trying lrelease -markuntranslated <prefix> it did not work; all untranslated texts were removed. After having a look at the source code it's obvious that -markuntranslated currently only works in combination with -idbased. I do not see a reason for this restriction. The following change makes -markuntranslated also work for non-idbased TS files.
--- tools/linguist/shared/qm.cpp +++ tools/linguist/shared/qm.cpp @@ -723,7 +723,7 @@ continue; } if (typ == TranslatorMessage::Unfinished) { - if (!cd.m_idBased && msg.translation().isEmpty()) { + if (!cd.m_idBased && cd.m_unTrPrefix.isEmpty() && msg.translation().isEmpty()) { ++untranslated; continue; } else {