I want to add Qt translation file
qt_ru.qm as a resource in my application,
QLibraryInfo::location(QLibraryInfo::TranslationsPath) returns path:
D:\Programming\tools\Qt\5.5\msvc2013\translations. If I try to add file with resource editor it says that file is outside of project directory and suggest to copy it. But I don't want to do this. Is it possible to substitute any Qt built in variable pointing to the translation path? Something like:
<RCC> <qresource prefix="/"> <file alias="qt_ru.qm">%QtPathToTranslation%/qt_ru.qm</file> </qresource> </RCC>
This translation file is meant to be deployed along with Qt. You are not meant to add it manually to your application's resources. Since you're using a dynamically linked build of Qt, you're already deploying many files in a specific folder structure, the translations belong with that deployment.