C
--update-translations
Description
In a QmlProject project file, you can list translation files (having the extension .ts
) using the TranslationFiles node. If you set this command-line option, qmlprojectexporter
synchronizes the strings in those translation files with the Qml sources they are pointing to.
If you don't specify this command-line option, qmlprojectexporter
won't update the translations by default. The exception to this is if at least one .ts
file is missing during the configure phase.
Note: It is not recommended to use this option to update translations for only a single module, if there is a chance that any other QmlProject files use the same .ts
files. When used on a module, translated strings from other modules withing the same file can get invalidated.
Usage
// Run qmlprojectexporter to only update translations. qmlprojectexporter --no-export-cpp --no-export-configuration --no-export-modules --update-translations --outdir output-dir my_project.qmlproject
Since
This option was introduced in QmlProject API 1.3 .
See also --no-export-cpp, --no-export-configuration, and --no-export-modules.
Available under certain Qt licenses.
Find out more.