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

lupdate: doesn't translate text from ui files correctly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.1
    • 4.5.2
    • Tools: Linguist
    • None
    • 68595bbc28ba0d1cd78557c61011dc004a4a507c

    Description

      To reproduce, run the test program that's attached.

      The result of running lupdate will be an incorrect à instead of Ö - you will need to modify the line in main.cpp to use tr( instead of QObject::trUtf8( since lupdate seems to generate this (without the option to modify the translate function).

      Then open the .ts file in a text editor and you will see that the text is garbled when a unicode string has been specified.

      The result is that tr("\303\226ffnen"); is interpreted as Ãffnen but should be Öffnen

      On the command line, run the following:-

      lupdate HelloWorldQtUic.pro

      this gets you the .ts file which can be inspected or opened to see the problem

      So far, I've reproduced this on Windows using Qt versions 4.5.0, 4.5.1 and 4.5.2 as I suspected it may be a regression given that there was a similar task opened in the past.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes