summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-09-14 14:20:43 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-29 17:07:03 +0000
commit2897766c0c3bddb4c1e4af25b39f98382d355c6c (patch)
tree5fa17d50f86b825b27680d68d2ca4a3556b3904c
parent6a4ba7d180aca102fa8114b8c22d02b1661dfa9e (diff)
QML i18n: Mention that qmake section is only relevant for qmake
Additionally, shortly hint at the corresponding CMake functionality. Change-Id: I7d9d8034efa546117df572daafbad3077d520465 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit bd0b79101ef7ce155d20edd4ccdffa287824c5e6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--doc/src/qmlapp/internationalization.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/qmlapp/internationalization.qdoc b/doc/src/qmlapp/internationalization.qdoc
index acdd9ef18..9abca6b02 100644
--- a/doc/src/qmlapp/internationalization.qdoc
+++ b/doc/src/qmlapp/internationalization.qdoc
@@ -251,6 +251,10 @@ strings are accessible from QML and C++.
\section2 Use a Conditional to Hide QML Source From the Compiler
+\note The following section only applies to \c qmake projects. With \c CMake's
+target based API, the QML sources are passed \c{qt_add_qml_module}'s QML_FILES
+property. \c{qt_add_lupdate} will then collect them from the target.
+
The \c lupdate tool extracts user interface strings from your application.
lupdate reads your application's .pro file to identify which source files
contain texts to be translated. This means your source files must be listed in