summaryrefslogtreecommitdiffstats
path: root/src/linguist/linguist/doc/src/linguist-manual.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/linguist/linguist/doc/src/linguist-manual.qdoc')
-rw-r--r--src/linguist/linguist/doc/src/linguist-manual.qdoc34
1 files changed, 2 insertions, 32 deletions
diff --git a/src/linguist/linguist/doc/src/linguist-manual.qdoc b/src/linguist/linguist/doc/src/linguist-manual.qdoc
index 722b853a0..308bc9f1c 100644
--- a/src/linguist/linguist/doc/src/linguist-manual.qdoc
+++ b/src/linguist/linguist/doc/src/linguist-manual.qdoc
@@ -847,7 +847,8 @@
The \c lupdate tool extracts user interface strings from your application.
It reads the application .pro file to identify which source files
contain text to be translated. This means your source files must be listed
- in the \c SOURCES or \c HEADERS entry in the .pro file. If your files are
+ in the \c SOURCES or \c HEADERS entry in the .pro file, or in resource
+ files listed in the \c RESOURCE entry. If your files are
not listed, the text in them will not be found.
An example of a complete \c .pro file with four translation source
@@ -870,37 +871,6 @@
\snippet doc_src_linguist-manual.cpp 3
- \section2 Use a Conditional to Hide QML Source From the Compiler
-
- The SOURCES variable is intended for C++ source files. If you list QML
- or JavaScript source files there, the compiler tries to build them as though
- they are C++ files. As a workaround, you can use an \c lupdate_only{...}
- conditional statement so the \c lupdate tool sees the .qml files but the C++
- compiler ignores them.
-
- For example, the following .pro file snippet specifies two .qml files in
- the application:
-
- \code
- lupdate_only {
- SOURCES = main.qml \
- MainPage.qml
- }
- \endcode
-
- You can also specify the .qml source files with a wildcard match. The
- search is not recursive so you need to specify each directory where there
- are user interface strings in the source code:
-
- \code
- lupdate_only {
- SOURCES = *.qml \
- *.js \
- content/*.qml \
- content/*.js
- }
- \endcode
-
\section1 Internationalizing Applications
Design your application so that it can be adapted to various languages and