diff options
Diffstat (limited to 'src/qml/doc/src/qmllanguageref/documents/structure.qdoc')
-rw-r--r-- | src/qml/doc/src/qmllanguageref/documents/structure.qdoc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/doc/src/qmllanguageref/documents/structure.qdoc b/src/qml/doc/src/qmllanguageref/documents/structure.qdoc index 4be00b24cc..340d89d07d 100644 --- a/src/qml/doc/src/qmllanguageref/documents/structure.qdoc +++ b/src/qml/doc/src/qmllanguageref/documents/structure.qdoc @@ -33,6 +33,7 @@ engine interprets code. The following pragmas are exaplained in details below. \li \c FunctionSignatureBehavior \li \c NativeMethodBehavior \li \c ValueTypeBehavior +\li \c Translator \endlist \section2 Singleton @@ -257,6 +258,15 @@ way to express the same operations. \sa {Type annotations and assertions} +\section2 Translator + +With this pragma you can set the context for the translations in the file. + +\qml +pragma Translator: myTranslationContext +\endqml + +For more information on internationalization with QML, see \l{QML: Use qsTr()}{Use qsTr}. \section1 Imports |