lupdate-qt4 -version (return code: 0)
lupdate version 4.8.7
lupdate-qt4 --help (return code: 0)
Usage:
lupdate [options] [project-file]...
lupdate [options] [source-file|path|@lst-file]... -ts ts-files|@lst-file
lupdate is part of Qt's Linguist tool chain. It extracts translatable
messages from Qt UI files, C++, Java and JavaScript/QtScript source code.
Extracted messages are stored in textual translation source files (typically
Qt TS XML). New and modified messages can be merged into existing TS files.
Options:
-help Display this information and exit.
-no-obsolete
Drop all obsolete strings.
-extensions <ext>[,<ext>]...
Process files with the given extensions only.
The extension list must be separated with commas, not with whitespace.
Default: 'java,jui,ui,c,c++,cc,cpp,cxx,ch,h,h++,hh,hpp,hxx,js,qs,qml'.
-pluralonly
Only include plural form messages.
-silent
Do not explain what is being done.
-no-sort
Do not sort contexts in TS files.
-no-recursive
Do not recursively scan the following directories.
-recursive
Recursively scan the following directories (default).
-I <includepath> or -I<includepath>
Additional location to look for include files.
May be specified multiple times.
-locations {absolute|relative|none}
Specify/override how source code references are saved in TS files.
Default is absolute.
-no-ui-lines
Do not record line numbers in references to UI files.
-disable-heuristic {sametext|similartext|number}
Disable the named merge heuristic. Can be specified multiple times.
-pro <filename>
Name of a .pro file. Useful for files with .pro file syntax but
different file suffix. Projects are recursed into and merged.
-source-language <language>[_<region>]
Specify the language of the source strings for new files.
Defaults to POSIX if not specified.
-target-language <language>[_<region>]
Specify the language of the translations for new files.
Guessed from the file name if not specified.
-ts <ts-file>...
Specify the output file(s). This will override the TRANSLATIONS
and nullify the CODECFORTR from possibly specified project files.
-codecfortr <codec>
Specify the codec assumed for tr() calls. Effective only with -ts.
-version
Display the version of lupdate and exit.
@lst-file
Read additional file names (one per line) from lst-file.