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

Documentation's example about handling plural code in QML seems wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7
    • None
    • All

    Description

      The snippet in https://doc.qt.io/qt-6/i18n-source-translation.html#qml-example does not seem to work.

      Instead of 

       

      text: qsTr("%n message(s) saved").arg(total)

       

      it should be 

      text: qsTr("%n message(s) saved", "", total)

      as explained here https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTr-method 

       

       

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            pijaouen Pierre Jaouen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes