Translations are not stripped from the .desktop file

Bug #538977 reported by David Planella on 2010-03-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Simple Scan
Fix Released
Ubuntu Translations
simple-scan (Ubuntu)

Bug Description

Simple Scan 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 then shipped with no translations, which will actually be loaded from the .mo files in the language packs (see

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 in the packaging (e.g. using the CDBS rule), another option is to add the X-GNOME-Gettext-Domain key directly to the upstream sources. This will have the benefit that other distributions using this mechanism (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:


David Planella (dpm) on 2010-03-15
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → Medium
tags: added: needs-desktop-entry-i18n
Changed in simple-scan:
status: New → Fix Committed
importance: Undecided → Low
Changed in simple-scan (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Changed in simple-scan:
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package simple-scan - 0.9.10-0ubuntu1

simple-scan (0.9.10-0ubuntu1) lucid; urgency=low

  * New upstream release:
    - Change default scan direction to top-to-bottom
    - Call sane_cancel after each document, not duing multi page scans
      (LP: #536864)
    - Set X-GNOME-Gettext-Domain in .desktop file (LP: #538977)
    - Fix memory leak in page_set_scan_area()
    - Fix read buffering when reading large images
    - Fix moving crop on pages after first (LP: #542830)
    - Load color profiles for scanner and save them in output files
    - Fix broken logic in picking nearest supported scan resolution
      (LP: #545807)
    - Add save button back into toolbar (LP: #543384)
    - Put text beside crop toolbutton (LP: #543384)
    - Merge document type into scan menu (LP: #543384)
  * debian/control:
    - Build-depend on libdput-glib-1-dev
 -- Robert Ancell <email address hidden> Thu, 25 Mar 2010 12:42:38 +1100

Changed in simple-scan (Ubuntu):
status: Fix Committed → Fix Released
David Planella (dpm) on 2010-03-31
Changed in ubuntu-translations:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers