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

When calling QJSEngine::evaluate() with an absolute file path that contains a drive letter, it will be unable to determine the context for qsTr calls

    XMLWordPrintable

Details

    • Windows
    • 67fbdadb3ba1aa9f86ae2d6ca3bff69479fb12be

    Description

      When calling QJSEngine::evaluate() with an absolute file path that contains a drive letter, it will be unable to determine the context for qsTr calls. This is due to the fact that QUrl(absoluteFilePathWithDrive) is not seeing this as a valid url unless it has "file://" prepended to it. As a result all calls to qsTr() will not trigger a translation as it cannot match the context.

      Attachments

        Activity

          People

            erikv Erik Verbruggen
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: