summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/src/internationalization/i18n.qdoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/internationalization/i18n.qdoc b/doc/src/internationalization/i18n.qdoc
index 701990f52..11e5f57a2 100644
--- a/doc/src/internationalization/i18n.qdoc
+++ b/doc/src/internationalization/i18n.qdoc
@@ -448,11 +448,12 @@
\section2 QML Example
- The following QML code snippet replaces \c %n with the value of \c total:
+ The following QML code snippet translates the source text into the correct
+ plural form and replaces \c %n with the value of \c total:
\code
Text {
- text: qsTr("%n message(s) saved").arg(total)
+ text: qsTr("%n message(s) saved", "", total)
}
\endcode