Comment 4 for bug 760978

Revision history for this message
David Planella (dpm) wrote : Re: [Bug 760978] Re: Shotwell's desktop file contains English translations for all languages and cannot be translated

El dv 15 de 04 de 2011 a les 21:51 +0000, en/na Lucas Beeler va
escriure:
> Hi David,
>
> This is an artifact of the way you're setting the LANG variable inside
> of your packaging environment. The Shotwell desktop file doesn't ship
> with the Shotwell tarball. Instead, when you run "make install" from the
> Yorba-provided Shotwell tarball, the desktop file is synthesized at
> install time from the contents of the PO files. Note that Red Hat had
> similar packaging problems. For a better explanation of what causes this
> and a summary of Red Hat's workaround, see this Yorba TRAC bug:
> http://trac.yorba.org/ticket/2661
>

Hi Lucas,

Thanks for the prompt reply and for the pointer to the RH bug.

Producing a .desktop file from a source .desktop.in file and merging in
the contents from the translations provided in .po files is the standard
practice in most open source projects, so it's not a particular of
Shotwell.

What I don't quite understand is why Shotwell does not use standard and
proven methods such as intltool to build the .desktop file instead of
providing your own method, which seems not to be working for at least
two downstreams already. I'm not debating this, as perhaps you have
special requirements, I'm just trying to understand the rationale.

As per the workaround, Red Hat uses a different packaging method, so
I'll let someone more knowledgeable in Debian packaging to comment
whether we can reuse that, but I still can't follow why the LANG
variable setting should affect the build at all.

In Ubuntu we have the possibility of loading the translations
of .desktop files directly from .mo files at runtime, so perhaps
stripping the translations from the .desktop file would be a better
workaround for us.

In any case, all the X-GNOME-FullName should have been stripped already,
so we might have to look at why they weren't in the Ubuntu package in
the first place.

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