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

lupdate does not expand escape sequences in meta strings for qsTrId()

    XMLWordPrintable

Details

    • 3d095069cf2e2e349489bcf5faf92145320471fb (qt/qttools/5.12)

    Description

      Given the following QML code:

      Text {
          //% "<a href=\"http://qt-project.org/\">Qt Project</a>"
          text: qsTrId("qt-project-url")
      }
      

      The value assigned to the text property has the backslashes still present:

      <a href=\"http://qt-project.org/\">Qt Project</a>

      Removing the backslashes from the code results in the following parse error:

      Unexpected character in meta string
      lupdate warning: Message with id 'qt-project-url' has no source.

      Attachments

        Issue Links

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

          Activity

            People

              lugerard Lucie Gerard
              amccarthy Aaron McCarthy
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes