Cross-compiling a plugin (missing translation file)

While cross compiling I get a message that something is not working with the translations:

lrelease ; rsync -a /home/michael/nymea-plugin-test/translations/*.qm /home/michael/nymea-plugin-test/translations/;
Usage:
    lrelease [options] project-file
    lrelease [options] ts-files [-qm qm-file]

lrelease is part of Qt's Linguist tool chain. It can be used as a
stand-alone tool to convert XML-based translations files in the TS
format into the 'compiled' QM format used by QTranslator objects.

Options:
    -help  Display this information and exit
    -idbased
           Use IDs instead of source strings for message keying
    -compress
           Compress the QM files
    -nounfinished
           Do not include unfinished translations
    -removeidentical
           If the translated text is the same as
           the source text, do not include the message
    -markuntranslated <prefix>
           If a message has no real translation, use the source text
           prefixed with the given string instead
    -silent
           Do not explain what is being done
    -version
           Display the version of lrelease and exit
rsync: change_dir "/home/michael/nymea-plugin-test/translations" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
Makefile:303: recipe for target 'lrelease' failed
make[2]: *** [lrelease] Error 23

My workaround was to create manually an empty ts file.

Is there a smarter way?

Hi Michael,
if you want to update the translations, you simply run make lupdate in the build directory. This is gonna update your ts files in the sourcedir/translations, and it should not be necessary to copy files manually. Once the ts files are updated, you can start translating them for each language. Once done, you can run make lrelease and you should get your qm files.

Those files should be already there once you start crosscompiling, and are not part of the buildprocss itself.

Some background information can be found here: Qt Linguist Manual: Release Manager | Qt Linguist Manual