C
TranslationFiles.directory
Adds a directory containing the translation files.
Description
This property can be used to add a directory containing the translation files (.ts). If the translation files are spread across more than one directory, list each directory separately using an InterfaceFiles node.
Note: The directory node can be combined with the files node in a InterfaceFiles node. Prefer explicit inclusion of files using the files property.
Warning: Translation files placed in subdirectories are not included.
Usage
This property is accepted in any context where its parent node is accepted. It takes a string.
Code example:
TranslationFiles {
directory: "mytranslations"
}Since
This property was introduced in QmlProject API 1.3 .
See also TranslationFiles.files.
Available under certain Qt licenses.
Find out more.