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

lrelease ignores output directory setting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 2.7.1 (rev.08)
    • Build-time integration
    • None
    • Qt 5.15.2
      MSVC 2019 Version 16.9.2
    • Windows
    • 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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes