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

lupdate does not work with wchar_t with QT_TR_NOOP

    XMLWordPrintable

Details

    • Windows

    Description

      If text is wide character then lupdate does not picks it up. I agree that Qt's translation mechanism in general expect const char* i.e. UTF-8 encoded strings
      But then what is confusing here is that it works with Qt6.5.x

      Attached is the small example  This has text string

      QT_TR_NOOP(L"Welcome to our application!")

      When lupdate of Qt6.2 is used to create .ts file this does not find this but if lupdate of 6.5 is used it finds it.

      Attached is tiny example. 

      using Qt6.2 lupdate run lupdate . -ts translations_en.ts

      and then using 6.5 run same. 

      Attachments

        1. qtbug125216.zip
          4 kB
          Irfan Omair
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes