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

Add string::arg in QJSEngine::installTranslatorFunctions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.4.0 RC
    • Fix Version/s: 5.4.0
    • Labels:
      None

      Description

      QJSEngine::installTranslatorFunctions add the translator methods like qsTr() to an object.

      However, the custom string.arg method is not added automatically, which let idioms like

      qsTr("Hello %1").arg("world")

      fail.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kkohne Kai Köhne
              Reporter:
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes