summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2023-01-27 15:17:55 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-30 16:08:57 +0000
commitdbdf0e6cc2c98afbb566491e91619be4443c5b3d (patch)
tree2ac7799d88714f4e060322a08cd0afad0396fb0f
parent770312407c9daa016b0a7f9596a686d75d43edbd (diff)
downloadqtdoc-dbdf0e6cc2c98afbb566491e91619be4443c5b3d.tar.gz
Doc: Link to CMake function docs instead of adding examples
Let's try to keep the CMake information in one place instead of scattered around the documentation. Task-number: QTBUG-71876 Change-Id: I265d0ed0b9e64bf3ff24cc1e61321e2af1446e9c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 1f02e57ed0f544e1d63c8ef009de7c16c1194c9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--doc/src/internationalization/l10n.qdoc20
1 files changed, 2 insertions, 18 deletions
diff --git a/doc/src/internationalization/l10n.qdoc b/doc/src/internationalization/l10n.qdoc
index 85c9c92c..5cc65e08 100644
--- a/doc/src/internationalization/l10n.qdoc
+++ b/doc/src/internationalization/l10n.qdoc
@@ -48,24 +48,8 @@
\section2 Using CMake
- With \c CMake's target based API, the QML sources are passed
- \c{qt_add_qml_module}'s \c QML_FILES property. The \c{qt_add_lupdate} function
- collects them from the target.
-
- Add the \l{cmake-commands-qtlinguisttools}{CMake commands} to
- the \c CMakeLists.txt file. The following example adds translations
- for an \e Arrowpad application:
-
- \badcode
- find_package(Qt6 REQUIRED COMPONENTS LinguistTools)
-
- ...
-
- qt6_add_translations(arrowpad
- TS_FILES arrowpad_fr.ts arrowpad_nl.ts
- QM_FILES_OUTPUT_VARIABLE qm_files)
- install(FILES ${qm_files} DESTINATION ${INSTALL_EXAMPLEDIR})
- \endcode
+ Add the \l qt_add_translations command to the \c CMakeLists.txt file to
+ create targets for updating TS files and transforming them into QM files.
\section2 Using qmake