Multi diag tools
|
Utilities to handle translations. More...
#include <Translation.h>
Inherits QObject.
Public Member Functions | |
Translation (QObject *parent=nullptr) | |
Constructor. | |
bool | joinTranslations (const Mdt::Translation::TranslationInfoList &inTranslations, const QStringList &binaryFiles, const QString &destinationDirectoryPath, const Mdt::FileSystem::PathList &pathPrefixList) |
Joint QM files. More... | |
Mdt::Error | lastError () const |
Get last error. | |
Utilities to handle translations.
Definition at line 39 of file Translation.h.
bool Mdt::DeployUtils::Translation::joinTranslations | ( | const Mdt::Translation::TranslationInfoList & | inTranslations, |
const QStringList & | binaryFiles, | ||
const QString & | destinationDirectoryPath, | ||
const Mdt::FileSystem::PathList & | pathPrefixList | ||
) |
Joint QM files.
Will join inTranslations to a single QM file for each binary file in binaryFiles , as well as existing suffixes (langugaes) existing in inTranslations . Each produced QM file will be named <binaryFileName>_<suffix>.qm . binaryFiles can contain paths to executables or libraries . The <binaryFileName> is extracted for each file in binaryFiles .
The resulting QM file will be generated to the directory specified by destinationDirectoryPath . If this directory does not exist, it will be created first .
The pathPrefixList is used to locate the lconvert tool. It should be set if a non system wide installed Qt version is used.
Definition at line 43 of file Translation.cpp.