diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-04 11:17:03 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-04 16:24:37 (GMT) |
commit | 9a88c8808f8e084e77ee22f907366250f3a0ad2a (patch) | |
tree | 9813c45e6d1b27264e0d793fddcd1e62546714f1 /tools/linguist/lrelease | |
parent | 1f860338b23d783387b3817de0da100840078edf (diff) | |
download | Qt-9a88c8808f8e084e77ee22f907366250f3a0ad2a.zip Qt-9a88c8808f8e084e77ee22f907366250f3a0ad2a.tar.gz Qt-9a88c8808f8e084e77ee22f907366250f3a0ad2a.tar.bz2 |
add -markuntranslated option
maemo *really* want it, so pushing it in now ...
Diffstat (limited to 'tools/linguist/lrelease')
-rw-r--r-- | tools/linguist/lrelease/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/linguist/lrelease/main.cpp b/tools/linguist/lrelease/main.cpp index b32b133..ecaed27 100644 --- a/tools/linguist/lrelease/main.cpp +++ b/tools/linguist/lrelease/main.cpp @@ -79,6 +79,9 @@ static void printUsage() " -removeidentical\n" " If the translated text is the same as\n" " the source text, do not include the message\n" + " -markuntranslated <prefix>\n" + " If a message has no real translation, use the source text\n" + " prefixed with the given string instead\n" " -silent\n" " Do not explain what is being done\n" " -version\n" @@ -183,6 +186,12 @@ int main(int argc, char **argv) } else if (args[i] == QLatin1String("-nounfinished")) { cd.m_ignoreUnfinished = true; continue; + } else if (args[i] == QLatin1String("-markuntranslated")) { + if (i == argc - 1) { + printUsage(); + return 1; + } + cd.m_unTrPrefix = args[++i]; } else if (args[i] == QLatin1String("-silent")) { cd.m_verbose = false; continue; |