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:[email protected]] Im 
Auftrag von Julien Bordes
Gesendet: Mittwoch, 9. November 2016 11:27
An: [email protected]
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.

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to