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

QT_TR_NOOP does not take care of the endline character (\n).

    XMLWordPrintable

Details

    Description

      QT_TR_NOOP used in a listmodel does not handle the \n character.

      I am trying to translate a text that contains "\n" character. But in English without a translator, \n character is displayed on the screen instead of a new line appearing.

              ListModel {
                  id: labelModel
                  ListElement{name:QT_TR_NOOP("Automated\nDelay:");defaultValue:"1"}
              }
      

      Output:

           Automated\nDelay
      

      Expected Output:

           Automated
           Delay
      

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            miths Mithil Srivastav
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes