1 Usage:
2 lupdate [options] [project-file]
3 lupdate [options] [source-file|path|@lst-file]
-ts ts-files|@lst-file
4
5 lupdate is part of Qt's Linguist tool chain. It extracts translatable
6 messages from Qt UI files, C++, Java and JavaScript/QtScript source code.
7 Extracted messages are stored in textual translation source files (typically
8 Qt TS XML). New and modified messages can be merged into existing TS files.
9
10 Options:
11 -help Display this information and exit.
12 -no-obsolete
13 Drop all obsolete strings.
14 -extensions <ext>[,<ext>]
15 Process files with the given extensions only.
16 The extension list must be separated with commas, not with whitespace
17 .
18 Default: 'java,jui,ui,c,c++,cc,cpp,cxx,ch,h,h++,hh,hpp,hxx,js,qs,qml'
19 .
20 -pluralonly
21 Only include plural form messages.
22 -silent
23 Do not explain what is being done.
24 -no-sort
25 Do not sort contexts in TS files.
26 -no-recursive
27 Do not recursively scan the following directories.
28 -recursive
29 Recursively scan the following directories (default).
30 -I <includepath> or -I<includepath>
31 Additional location to look for include files.
32 May be specified multiple times.
33 -locations {absolute|relative|none}
34 Specify/override how source code references are saved in TS files.
35 Default is absolute.
36 -no-ui-lines
37 Do not record line numbers in references to UI files.
38 -disable-heuristic {sametext|similartext|number}
39 Disable the named merge heuristic. Can be specified multiple times.
40 -pro <filename>
41 Name of a .pro file. Useful for files with .pro file syntax but
42 different file suffix. Projects are recursed into and merged.
43 -source-language <language>[_<region>]
44 Specify the language of the source strings for new files.
45 Defaults to POSIX if not specified.
46 -target-language <language>[_<region>]
47 Specify the language of the translations for new files.
48 Guessed from the file name if not specified.
49 -ts <ts-file>
50 Specify the output file(s). This will override the TRANSLATIONS
51 and nullify the CODECFORTR from possibly specified project files.
52 -codecfortr <codec>
53 Specify the codec assumed for tr() calls. Effective only with -ts.
54 -version
55 Display the version of lupdate and exit.
56 @lst-file
57 Read additional file names (one per line) from lst-file.
58