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

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

XMLWordPrintable

    • 3d095069cf2e2e349489bcf5faf92145320471fb (qt/qttools/5.12)

      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.

        For Gerrit Dashboard: QTBUG-40639
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes