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

    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: Tools: Linguist
    • Labels:
      None
    • Technical Risk:
      Normal
    • Commits:
      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

            • Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              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