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.

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.