[Interest] lrelease before compiling qrc
Petric Frank
pfrank at gmx.de
Tue Nov 7 14:59:28 CET 2023
Hello,
in my app i have translation files. I added them to the qrc-file because i
want to load the translations from resource:
<file>app-de_DE.qm</file>
<file>app-en_US.qm</file>
They are are generated from *.ts files. In *.pro i added
CONFIG += lrelease
TRANSLATIONS = app-de_DE.ts \
app-en_US.ts
The problem is when i build the app it breaks at compiling the qrc-file:
make: *** No rule to make target '../app/app-de_DE.qm', needed by
'qrc_app.cpp'. Stop.
I think that the lrelease step comes too late.
So the question is how to overcome this ?
For example executing lrelease earlier - maybe at first - at make run. How i
have to modify the *.pro file ?
kind regards
Petric
More information about the Interest
mailing list