Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Fixed
-
Affects Version/s: 2.7.1 (rev.08)
-
Fix Version/s: None
-
Component/s: Build-time integration
-
Labels:None
-
Environment:Qt 5.15.2
MSVC 2019 Version 16.9.2
-
Platform/s:
-
Commits: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.