diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2024-02-19 17:12:23 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2024-02-26 17:28:26 +0100 |
commit | 53923928f338f0e271c55021cc7f3be503f13ed7 (patch) | |
tree | 950b3158ec6733ae9f583d9585469b8dd6f5fb18 | |
parent | 158357a438f19eefff595895d49249ab1bc7123d (diff) |
Doc: Mention id-based translations in qt_add_translations docs
Task-number: QTBUG-122396
Change-Id: Ib21b5a26c5e71f157344f5cddb12a1fa67b2ee72
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 610e91b1d685c3932c2124c5a303c7a80028c11f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/linguist/linguist/doc/cmake-macros.qdoc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/linguist/linguist/doc/cmake-macros.qdoc b/src/linguist/linguist/doc/cmake-macros.qdoc index c29bb1415..cef8dde2c 100644 --- a/src/linguist/linguist/doc/cmake-macros.qdoc +++ b/src/linguist/linguist/doc/cmake-macros.qdoc @@ -446,6 +446,9 @@ You can set additional options for \l{lupdate} and \l{lrelease} with \c{LUPDATE_OPTIONS} and \c{LRELEASE_OPTIONS}. You can find possible options in the \l{lupdate options} and \l{lrelease options}. +For example, to use \l{Text ID based translations}{ID based translations}, you +need to pass \c{LRELEASE_OPTIONS -idbased} to \c qt_add_translations. + By default, the \c{.qm} files will be placed in the current build directory (\c{CMAKE_CURRENT_BINARY_DIR}). To change this, you can set \c{OUTPUT_LOCATION} as a property of the source \c{.ts} file. |