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

lupdate does not recognize else brace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.14.1
    • Tools: Linguist
    • None
    • Windows

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes