diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-09-22 16:31:18 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-09-22 18:37:41 (GMT) |
commit | a4392f1d6869fcb86d8e91df5edf1fd2db197198 (patch) | |
tree | af5c3da1ca0f7e1c17cbf6e63bad137771024595 /tools | |
parent | b7b21318c4edf10f5eaadd9481a58fd04f6947ea (diff) | |
download | Qt-a4392f1d6869fcb86d8e91df5edf1fd2db197198.zip Qt-a4392f1d6869fcb86d8e91df5edf1fd2db197198.tar.gz Qt-a4392f1d6869fcb86d8e91df5edf1fd2db197198.tar.bz2 |
add --sort-contexts option
ok, so this is a feature ... a 4-line-one ...
Diffstat (limited to 'tools')
-rw-r--r-- | tools/linguist/lconvert/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/linguist/lconvert/main.cpp b/tools/linguist/lconvert/main.cpp index fb869ec..67553a0 100644 --- a/tools/linguist/lconvert/main.cpp +++ b/tools/linguist/lconvert/main.cpp @@ -103,6 +103,8 @@ static int usage(const QStringList &args) " Drop obsolete messages.\n\n" " --no-finished\n" " Drop finished messages.\n\n" + " --sort-contexts\n" + " Sort contexts in output TS file alphabetically.\n\n" " --locations {absolute|relative|none}\n" " Override how source code references are saved in TS files.\n" " Default is absolute.\n\n" @@ -201,6 +203,8 @@ int main(int argc, char *argv[]) noObsolete = true; } else if (args[i] == QLatin1String("-no-finished")) { noFinished = true; + } else if (args[i] == QLatin1String("-sort-contexts")) { + cd.m_sortContexts = true; } else if (args[i] == QLatin1String("-locations")) { if (++i >= args.size()) return usage(args); |