Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
2.7.1 (rev.08)
-
None
-
Qt 5.15.2
MSVC 2019 Version 16.9.2
-
-
71de348ac7a36c28e251062af46fed8424ea7eee
Description
In my project, the .qm files should end up in a subfolder of $(OutDir). However, lrelease ignores the project-wide and file-specific settings for "Output Directory" and "Output File Name".
A workaround for my local installation was a change in qttranslations.targets:
// Run lrelease // --> <PropertyGroup> <!-- Generate command line --> <Cmd> @(Options->'%(CmdExec)', '') @(Options->'%(CmdOption)', ' ') @(QtTranslationRelease->'%(ReleaseAdditionalOptions)') @(Options->'%(CmdInput)', '') @(QtTranslationRelease->'%(OutputFile)') // before: @(Options->'%(CmdOutput)', '') </Cmd>
This allowed me to at least use OutputFile = $(OutDir)lang\app.en.qm.