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

    • Platform/s:
      Windows
    • Commits:
      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

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes