[Qt-interest] Usage of macros together with lupdate
Markus Franke
Franke.M at sebakmt.com
Fri Jan 13 12:04:28 CET 2012
Dear all,
I would like to use macros in order to specify the translation category
for some translatable texts.
---snip---
#define CATEGORY_ERROR "ErrorMessages"
QT_TRANSLATE_NOOP(CATEGORY_ERROR, "Some error message")
---snap---
However, as the lupdate command does not run the C preprocessor before
trying to retrieve the translatable texts from source, it simply ignores
all translatable texts specified like in the method above.
Wouldn't it be much more convenient to run the preprocessor and then pipe
the preprocessed contents to lupdate in order to be able to use macros? Or
is there any other way in order be able to use macros within definitions
like QT_TRANSLATE_NOOP or QCoreApplication::translate()?
Thanks for any comments and with best regards,
Markus Franke
"Disclaimer: This message is intended only for the use of the individual
or entity to
which it is addressed and may contain information which is privileged,
confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the
intended recipient or the person
responsible for delivering the message to the intended recipient, you are
strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If
you have received this
communication in error, please notify the sender and destroy and delete
any copies you may have
received."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20120113/fec28166/attachment.html
More information about the Qt-interest-old
mailing list