PDA

View Full Version : Translation



merlvingian
14th August 2007, 18:42
I could not find any reference to this in the QtDocs and not sure how a compiler would resolve this since it would be static, but if I was to do something like:


#define MULTILINGUAL_MESSAGE tr("I need to be translated")

Would this still be viable for multi language support?

jpn
14th August 2007, 18:45
See QT_TR_NOOP (http://doc.trolltech.com/4.3/qtglobal.html#QT_TR_NOOP) and QT_TRANSLATE_NOOP (http://doc.trolltech.com/4.3/qtglobal.html#QT_TRANSLATE_NOOP).