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

    • Commits:
      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

        For Gerrit Dashboard: QTBUG-106705
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            semih.yavuz Semih Yavuz
            Reporter:
            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