Lupdate with qml files
Article Metadata
To run the lupdate tool on .qml files right from the Qt-Creator, .qml files need to be added to the .pro file under the SOURCES section. Adding .qml to this section is however unwanted for the non-cpp files. Therefore, the following trick should be used:
(by the courtesy of @snowpong) simply create a conditional which never kicks in, list your QML files in SOURCES += http://pastebin.com/ygZPczS1
evil_hack_to_fool_lupdate {
SOURCES += \ qml/Splash.qml \ qml/Login.qml \ ... }
Now you can use the script from Tools > External > Linguist > Update translations (lupdate) and files for languages marked in the TRANSLATIONS section of the .pro file will be generated


(no comments yet)