Comment 4 for bug 951054

Revision history for this message
David Planella (dpm) wrote : Re: [Bug 951054] Re: Most of the Checkbox UI is not translatable

Al 09/03/12 21:34, En/na Tiago Salem Herrmann ha escrit:
> The following command will extract all the strings and put them into a ts file:
> lupdate-qt4 frontend.pro -ts strings.ts
>

Thanks Tiago for your suggestion. However, Launchpad uses gettext and
cannot import .ts files.

> Another solution would be to compile the ui file into a cpp file and then extract the strings:
> uic-qt4 qtfront.ui> ui_qtfront.cpp
>

If we cannot use intltool directly, this might be the way to go. So I
guess we could put qt/ui_qtfront.cpp in POTFILES.in and make sure it is
generated before intltool is executed. Then intltool would work as usual
and put the messages from the .cpp file into the checkbox.pot file.

> the ui_qtfront.cpp is actually auto generated while compiling the qt
> frontend.
>

The Ubuntu One guys are also using a Qt frontend, and it might be worth
talking to them to see how they're handling translations and share the
knowledge and practices.

Cheers,
David.

--
David Planella
Ubuntu Translations Coordinator
www.ubuntu.com / www.davidplanella.wordpress.com
www.identi.ca/dplanella / www.twitter.com/dplanella