[Qt-creator] Running linguist from external tools with arguments (Ts-Files)?

Matthias Ballreich Matthias.Ballreich at outlook.de
Thu Nov 10 11:37:54 CET 2016


Hi Julien,

thanks for the answer, but this did not work. When I run the command, Linguist says there is no "*.ts" file.
Did I anything wrong? Works this code when you try it by yourself?

Matthias

Von: Qt-creator [mailto:qt-creator-bounces+matthias.ballreich=outlook.de at qt-project.org] Im Auftrag von Julien Bordes
Gesendet: Mittwoch, 9. November 2016 11:27
An: qt-creator at qt-project.org
Betreff: [Qt-creator] Running linguist from external tools with arguments (Ts-Files)?

Hello Matthias,

One solution could be

Executable: %{CurrentProject:QT_INSTALL_BINS}/linguist

Arguments: %{CurrentProject:Path}/*.ts

Working Directory: %{CurrentProject:Path}

and in your .pro

TRANSLATIONS += \
    $${TARGET}_en_US.ts \
    $${TARGET}_fr_FR.ts

But I think this solution only works if the translations are generated where your .pro file is and you manage translations the same in all your projects.

Julien.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20161110/17ff6b06/attachment.html>


More information about the Qt-creator mailing list