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

String in PropertyChanges not translated

    XMLWordPrintable

Details

    • 5fc59b64642b8af7b449770bae471a2a72bfa490

    Description

      When PropertyChanges changes the text of a Text element, qsTr() does not have an effect.

      The attached translation file foo_fi_FI.qm does the following mapping:
      "Hello" -> "Moro"
      "Click me" -> "Naksauta"
      "Click again" -> "Naksauta viä"

      When run as

      $ qml -translation foo_fi_FI.qm foo.qml

      the UI shows the correct Finnish translations. After clicking on the mouse area, the new text of the Text element is the original source instead of the translation.

      Attachments

        1. foo_fi_FI.qm
          0.2 kB
        2. foo_fi_FI.ts
          0.6 kB
        3. foo.qml
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            kellomak Pertti Kellomäki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes