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

lupdate misparses flow control statements as function calls, thus discards meta data

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.4.2
    • Tools: Linguist

    Description

      At present lUpdate will not find translation comments if the following syntax is applied:

      if (foo)
          //: comment
          return tr("foobar");
      

      Only this style is detected:

      if (foo) {
          //: comment
          return tr("foobar");
      }
      

      Attachments

        Activity

          People

            kkohne Kai Köhne
            qtcomsupport Qt Support
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: