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

qsTr context truncated on filename with multiple dots (ie. Foo.1.0.qml)

    XMLWordPrintable

Details

    • 8ebdbf5c85 (qt/qtdeclarative/dev)

    Description

      qsTr context in GlobalExtensions::method_qsTr is computed by QFileInfo(context).baseName() in
      GlobalExtensions::method_qsTr

      This differ from lupdate generated context that uses m_component = QFileInfo(fileName).completeBaseName();

      So for a .qml named Foo.1.0.qml :

      • the lupdate context is Foo.1.0
      • the qsTr context is Foo

      This caused our app to partially translated.

      Attachments

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

        Activity

          People

            semih.yavuz Semih Yavuz
            vrouille Vincent Rouillé
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes