Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
6.4.2
-
None
Description
I've made a #define Q_TR(text) that calls QCoreApplication::translate(FIXED_CONTEXT, text)
I called `lupdate file.cpp -ts trans.fr.ts -tr-function-alias tr+=Q_TR`
and it works, although complaining that my class lacks Q_OBJECT.
But when I call `lupdate file.cpp -ts trans.fr.ts -tr-function-alias translate+=Q_TR` it does not see the source texts at all.
eg:
#define Q_TR_CONTEXT "something"
#define Q_TR_C(context,mesg) QCoreApplication::translate(context,mesg)
#define Q_TR(mesg) Q_TR_C(Q_TR_CONTEXT,mesg)
...
display_text( Q_TR("press me") );