lupdate: allow to configure names of tr()-like functions
authorMarc Mutz <marc.mutz@kdab.com>
Mon, 26 Nov 2012 14:06:17 +0000 (15:06 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 9 Apr 2013 15:39:12 +0000 (17:39 +0200)
commiteec0eaed067dc1b421e12530c70b3a4ee01affee
tree3e01e001b5a2d1ef5f0ace13de3977394d1d5592
parentd07d47cf85f4026c8cb508fe9977fff5ffdbd810
lupdate: allow to configure names of tr()-like functions

This makes it possible to use lupdate in projects that would like to
wrap the tr()-like functions with their own versions, e.g. to add
error checking or other instrumentation code.

While we're at it, also simplify the c++ parsing with partly
table-driven code.

Change-Id: I72af68afa851a46342e75dcdd3dd58f4c14276b8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/linguist/lupdate/cpp.cpp
src/linguist/lupdate/lupdate.1
src/linguist/lupdate/lupdate.h
src/linguist/lupdate/main.cpp
src/linguist/lupdate/qdeclarative.cpp
tests/auto/linguist/lupdate/testdata/good/tr_function_alias/lupdatecmd [new file with mode: 0644]
tests/auto/linguist/lupdate/testdata/good/tr_function_alias/main.cpp [new file with mode: 0644]
tests/auto/linguist/lupdate/testdata/good/tr_function_alias/project.ts.result [new file with mode: 0644]