Comment 2 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 20:28, En/na Daniel Manrique ha escrit:
> Hi David,
>
> I think the checkbox-gtk UI hasn't changed so we shouldn't have any
> regressions regarding the work done there.
>
> Could you confirm whether you're using the new qt-based UI instead? To
> test, the initial welcome screen has a "don't show me this message in
> the future" checkbox on the bottom right corner.
>

Hi Daniel,

Thanks for the quick reply.

I'm using whatever Precise is shipping by default, and by looking at the
UI, I'd say it's Qt-based.

Looking at the code, I understand why it's happening: the
'qt/checkbox-qt.ui' is missing from the po/POTFILES.in file.

So if we're going to be shipping the Qt-based UI, we should:

- Remove the '[type: gettext/glade] gtk/checkbox-gtk.ui' line, so that
translators don't waste efforts translating a UI we're not shipping
- Add a line for the qt/checkbox-qt.ui file (*), so that intltool picks
it up, extracts its strings, puts them in the .pot file and they can be
updated in Launchpad.

> If so, we could treat this as a "master bug" for making sure the new Qt-
> based UI both honors existing translations and exposes its internal
> strings (such as "System Testing" for bug 951025 - it's a string
> alright, but we don't use gettext apparently for it) so they can be
> localized.
>

Yeah, it seems existing translations from .py files are indeed loaded,
but none of the Qt ones are.

Cheers,
David.

(*) Having played a bit with it, I'm not too sure how to best add
qt/checkbox-qt.ui to po/POTFILES.in, as intltool does not seem to
support Qt .ui files. I'm sure I've seen a workaround somewhere, perhaps
marking it as a generic XML file, but after a quick test with
'intltool-update -p -g checkbox', it didn't seem to extract the strings
from the file.

> Thanks!
>
>
> ** Changed in: checkbox
> Status: New => Incomplete
>
> ** Changed in: checkbox
> Milestone: None => 0.13.5
>

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