← Back to team overview

qpdfview team mailing list archive

Re: [Question #191188]: Translations files

 

Question #191188 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/191188

    Status: Open => Answered

Adam Reichold proposed the following answer:
Thank you for your help!

qpdfview uses the default translation mechanism of Qt, i.e. the
translation templates are automatically generated from the source code
using lupdate, then editing using linguist and then packed using
lrelease. Finally, they are included in the application binary using the
Qt resource system.

Unfortunately this is currently not really compatible to the Launchpad
workflow which does not support Qt's ts-files. But I can convert those
files into pot-files and upload them but this will have to be done
manually.

So you decide: Do you prefer to use Launchpad or to work directly with
the Qt mechanism?

If you would like to use Launchpad, I will make myself familiar with
that and hopefully have uploaded a translation template by this evening.

If you like to use the Qt mechanism, there is some helpful documentation
at "http://qt-project.org/doc/qt-4.8/linguist-manual.html";. Basically
you need a copy of the source code, add a "translations/qpdfview_xy.ts"
entry  in the line beginning with "TRANSLATIONS" of the file
"qpdfview.pro" and run "lupdate qpdfview.pro". You could then just post
those files to the mailing list and I will integrate them. (Or we work
with Bazaar branches and pull requests if you prefer.)

Again, thank you for taking the time to contribute.

-- 
You received this question notification because you are a member of
qpdfview, which is an answer contact for qpdfview.