PDA

View Full Version : Question about internationalization (i18n) with QML



antialias
30th November 2010, 14:45
I can translate qml files using lupdate just fine.

I have a Qt application with a main window and a declarative view (with linked .qml file)

What I want to do is use the TRANSLATION macro in the .pro file to generate multiple .ts files for multi-language translation at once. when I run:

lupdate -source-language en myprofile.pro

it produces the requested .ts files. However, it only parses the .ui file and not the .qml file

even if I us the -extensions option like so:

lupdate -source-language en -extensions qml myprofile.pro

my .qml files get ignored and only the .ui file gets parsed.

Any sugestions how to force lupdate to take the .qml files (and possibly how to make lupdate ignore the .ui file)?