aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/src
diff options
context:
space:
mode:
authorLucie Gérard <lucie.gerard@qt.io>2023-11-08 15:13:56 +0100
committerLucie Gérard <lucie.gerard@qt.io>2023-11-14 09:34:39 +0100
commitfaa49d960924a230704853c2a9e8b8252e4dc06f (patch)
treec3f95b0e5b4ea1e83bc8dff0fc47ae2d5a29a7bb /src/qml/doc/src
parent79b34126850c4235a1914e95f8e4235cfddba007 (diff)
Allow pragma Translator to have a string literal as value
Also add test and update documentation Task-number: QTBUG-114528 Change-Id: I7baa3a3268c4ccd2efe5bd8be7d790e909c430c6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/doc/src')
-rw-r--r--src/qml/doc/src/qmllanguageref/documents/structure.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/doc/src/qmllanguageref/documents/structure.qdoc b/src/qml/doc/src/qmllanguageref/documents/structure.qdoc
index 340d89d07d..c85dc53c1f 100644
--- a/src/qml/doc/src/qmllanguageref/documents/structure.qdoc
+++ b/src/qml/doc/src/qmllanguageref/documents/structure.qdoc
@@ -266,6 +266,10 @@ With this pragma you can set the context for the translations in the file.
pragma Translator: myTranslationContext
\endqml
+\qml
+pragma Translator: "myTranslationContext"
+\endqml
+
For more information on internationalization with QML, see \l{QML: Use qsTr()}{Use qsTr}.
\section1 Imports