Public bug reported:

Binary package hint: byobu

The Byobu 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
('byobu' being the application's gettext domain):

X-GNOME-Gettext-Domain=byobu

** Affects: ubuntu-translations
     Importance: Undecided
         Status: New

** Affects: byobu (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: needs-desktop-entry-i18n

** Also affects: ubuntu-translations
   Importance: Undecided
       Status: New

-- 
byobu's desktop file needs gettext domain
https://bugs.launchpad.net/bugs/623935
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to