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

Describe the point of using qsTranslate() instead of qsTr()

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.8.1, 6.9.0 FF
    • 6.7
    • Documentation
    • 9005a3551 (dev), 745722625 (6.8)
    • DaVinci 103

      link: https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTranslate-method

      It says 

      Returns a translated version of sourceText within the given context, 

      But it's not clear what would be the point and benefit of using this over qsTr().

      This point should be made clear in the documentation so that the user can pick the appropriate method for their application.

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

            safiyyah Safiyyah Moosa
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes