Shotwell's desktop file needs gettext domain

Bug #616856 reported by David Planella
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Medium
Unassigned
shotwell (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: shotwell

The Shotwell package in Ubuntu uses language packs, which include the translations of its .desktop file. These are imported into Launchpad and then exported.

Normally, before they are imported, they are stripped from the source .desktop file, which is ultimately shipped with no translations. Translations will actually be loaded from the .mo files in the language packs (see https://wiki.ubuntu.com/UbuntuDevelopment/Internationalisation/Packaging#DesktopEntries for more info).

However, the .desktop file is shipped with full translations, which override those in the language packs. In order for them to be stripped, the X-Ubuntu-Gettext-Domain must be added to the .desktop file.

If the X-Ubuntu-Gettext-Domain cannot be added through packaging (e.g. using the langpack.mk CDBS rule), another option is to add the X-GNOME-Gettext-Domain key directly to the upstream sources.

This would have the benefit that other distributions using this mechanism (e.g. OpenSUSE) will be able to use the upstream sources without further changes in this area. Distributions not loading translations of .desktop files at runtime, will simply ignore the key and load static translations as usual.

This is as simple as adding the following line to the .desktop file ('shotwell' being the application's gettext domain):

X-GNOME-Gettext-Domain=shotwell

David Planella (dpm)
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → Medium
tags: added: needs-desktop-entry-i18n
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package shotwell - 0.7.1-0ubuntu2

---------------
shotwell (0.7.1-0ubuntu2) maverick; urgency=low

  * debian/patches/02_desktop_gettext.patch:
    - Use gettext in .desktop files (LP: #616856)
 -- Robert Ancell <email address hidden> Fri, 27 Aug 2010 09:25:47 +1000

Changed in shotwell (Ubuntu):
status: New → Fix Released
David Planella (dpm)
Changed in ubuntu-translations:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.