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

Riitta-Leena Miettinen Riitta-Leena.Miettinen at qt.io
Tue Nov 8 13:41:06 CET 2016


Hello,

You can open a translation file in Qt Linguist from Qt Creator by right-clicking a TS file in the Projects view and selecting Open With > Qt Linguist in the context menu:

http://doc-snapshots.qt.io/qtcreator-4.2/creator-editor-external.html#using-qt-linguist

If that does not fit your needs, maybe you could take a look at how that function was implemented.

Cheers,

Leena

From: Qt-creator [mailto:qt-creator-bounces+riitta-leena.miettinen=qt.io at qt-project.org] On Behalf Of Matthias Ballreich
Sent: Montag, 7. November 2016 16:10
To: qt-creator at qt-project.org
Subject: [Qt-creator] Running linguist from external tools with arguments (Ts-Files)?

Hi there,

in Qt-Creator we can add some more external Tools. By default the two linguist steps: lupdate and lrelease are implemented.

I added a new one on which i call linguist, so that i can open Qt-Linguist directly from inside Qt-Creator. it works, but not completely as i want.

I want to add all the ts-files from the project, which are included in the pro-file as arguments, like on the console, when i run the linguist command.
I tried it with: %{CurrentProject:Translations} but this did not work. Linguist starts, but the ts-files will not be loaded.

Is this possible like i want it and if yes, can someone help me to find the right argument i have to add?

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


More information about the Qt-creator mailing list