Have you tried lconvert as decribed here? http://qt-project.org/wiki/Qt-Localization
Or maybe the po2ts tools from http://docs.translatehouse.org/proje...t/installation
Cheers,
_
Thanks, I downloaded official qt localization files (.ts) and converted it into .po file. Some observations:
It looks like two things are needed in the .po file for Qt Linquist to understand them:
1) "X-Qt-Contexts: true\n"
2) '|' character in context name. e.g. : msgctxt "short|"
Next test is to create a .qm file and load actua translation file in the program.
Is is possible programmatically to read a .po or .ts file and generate .qm files ? Basically I'm looking for a Qt class that might know how to do that. That must be already present in Qt Linquist application itself but do such class(es) exists within Qt classes that you could include in your Qt project ?
Thanks, I'll check Qt Linquist source code but just using lrelease.exe might be enough.
Bookmarks