rewrite support for listing translation files as sources
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Fri, 15 Nov 2013 21:02:44 +0000 (22:02 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 23 Nov 2013 22:35:38 +0000 (23:35 +0100)
commit9ca1e89e0d7e11b9db60d7fcf7399c655bd0e31e
tree97bc077f3589957cc099aa463cfc1d201bfd3dea
parent082efca145630db2d660d7241f7ae78d80f27e44
rewrite support for listing translation files as sources

ts files listed among the sources now contribute extant source strings
with locations, i.e., they are treated like all other sources. this
basically makes it possible to use lupdate like gettext's msgmerge.
this enables us to write a much more efficient variant of the
split-qt-ts.pl script found in qttranslations.

the original functionality of adding ts files as providers of
additional translations to merge is hidden behind the new -xts flag; it
is of course still undocumented.

Change-Id: I7a5488d814f39d6b5e9053a414547a6b1461fc14
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/linguist/lupdate/main.cpp