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

lupdate does not recognize else brace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P4: Low P4: Low
    • None
    • 5.14.1
    • Tools: Linguist
    • None
    • Windows

      https://forum.qt.io/topic/155896/i-am-confused-with-lupdate-with-different-directory
      test code:

      HAS_ABC = 1
      equals(HAS_ABC,"1") {
          ABC = abc
      } else {
          ABC = noabc
      }
      
      TRANSLATIONS += en-US-$${ABC}.ts
      

      it does not recognize else{} , the output will always :

      Output

      Updating 'en-US-noabc.ts'...
      Found 7 source text(s) (7 new and 0 already existing)

      "C:\Qt\Qt5.14.1\5.14.1\mingw73_64\bin\lupdate.exe" finished

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

            kkohne Kai Köhne
            lanmanck yajun liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes