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

Need a way to specify context for a URL

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P2: Important
    • 4.8.x
    • None
    • Qt Script
    • None

    Description

      Currently, the context for qsTr() is ultimately derived from:

      QFileInfo(url).baseName()
      

      This is inadequate for frameworks, such as QML, where the basename need not be unique. The context for a qsTr in QML modules should be derived from the URI of the QML element in which it appears.

      The above code is also horribly inefficient, since it creates an entire file engine where a simple string operation would suffice.

      Attachments

        Issue Links

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

          Activity

            People

              kenthans Kent Hansen (Inactive)
              wallison Warwick Allison (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes