Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14056

lupdate: Automatically pick up translatable strings in .qml/.js files that are part of the deployment directory

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • None
    • Tools: Linguist
    • None
    • 140fa19ad926f15246c8a501f8a3ccdeda4c5420

    Description

      The Qml Application wizard that we ship with QtCreator 2.1 advocates putting all .qml/.js files in a directory that will be deployed alongside with the executable. However, running lupdate on the .pro file doesn't pick up translatable strings from these files.

      Running lupdate on the .pro file should also inspect the deployment folders.

      Workaround for the time being:

      lupdate HelloWorld.pro -ts app.ts // get strings from C++ sources
      lupdate qml -ts qml.ts // get strings from qml folder
      lconvert app.ts qml.ts -o project.ts
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            kkohne Kai Köhne
            Votes:
            15 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes