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

Specifying engineering english via "//%" is not supported yet while using qsTrId()

    XMLWordPrintable

Details

    • bb84c5ef4f620af659395b66e6ed792a380b9a1f

    Description

      If we use qsTrId() in a qml file - and try to specify the translatable content as below
      //: This is the engineering description data - aka comment
      //% "About Product"
      text: qsTrId("qtn_prod_about_product")

      The expectation is that the ts file generated using lupdate will have "About Product" inside the <source> tag.
      Does not happen currently as expected.

      The possible reason for the incorrect behaviour could be that the function call "msg.setSourceText(sourcetext);" is missing around line 234 in qdeclarative.cpp file.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            evsathish Sathish E V
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes