Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-892

lrelease ignores output directory setting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1 (rev.08)
    • Fix Version/s: None
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Environment:
      Qt 5.15.2
      MSVC 2019 Version 16.9.2
    • Platform/s:
      Windows

      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.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            poulletm Matthieu Poullet
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes