summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2024-02-19 16:41:03 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2024-02-26 17:28:23 +0100
commit158357a438f19eefff595895d49249ab1bc7123d (patch)
tree2ba2d3d6a415629250439c1083290640ecfadd41
parentae1a8519652d6ac88f2737da6b339b8465a553f4 (diff)
Doc: Update qt_add_lupdate's example
...to use the new API that doesn't take a target name. Also, pass a plurals-only .ts file name. Task-number: QTBUG-122396 Change-Id: If622e9c9c69c7f73a6080f49b7253ca93cbdb96c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 11cf9f40dc60f435da2332c129579567686121ef) Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
-rw-r--r--src/linguist/linguist/doc/snippets/cmake-macros/examples.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/linguist/linguist/doc/snippets/cmake-macros/examples.cmake b/src/linguist/linguist/doc/snippets/cmake-macros/examples.cmake
index 0cc5211f4..db1d43a67 100644
--- a/src/linguist/linguist/doc/snippets/cmake-macros/examples.cmake
+++ b/src/linguist/linguist/doc/snippets/cmake-macros/examples.cmake
@@ -32,7 +32,10 @@ set_source_files_properties(app_en.ts app_de.ts
#! [set_output_location_on_ts_file]
#! [qt_add_lupdate]
-qt_add_lupdate(myapp TS_FILES myapp_de.ts)
+qt_add_lupdate(
+ TS_FILES myapp_de.ts
+ PLURALS_TS_FILE myapp_en.ts
+)
#! [qt_add_lupdate]
#! [qt_add_lrelease_install]