PDA

View Full Version : lrelease - how to specify qm-file in project file



lukass
16th January 2012, 16:09
Hello.
The QM file format is a compact binary format that is used by the localized application.
How can I specify QM file path in a .pro Qt project file? Is it possible?

pkj
16th January 2012, 18:01
Can't you add the qm file to your resource and use QTranslator::load? or #define path in some file in application? Why only in .pro?

lukass
16th January 2012, 19:07
Can't you add the qm file to your resource and use QTranslator::load? or #define path in some file in application? Why only in .pro?
Sorry, I asked the wrong(inaccurate) question.

I use command:

lrelease myproject.pro
and I want lrelease to generate .qm file in specified path defined in .pro file.