You have been subscribed to a public bug:

The GNOME Desktop provides (in Alacarte) the ability to change the name
for applications menu entries. This featore follows the desktop file
spec from freedesktop.org. I suppose that current implementation of X
-Ubuntu-Gettext-Domain key breaks the spec.

Example:
  * Open Alacarte (right click on panel menubar -> Edit menu)
  * Select System->Prefences menu on menus list
  * Righ click on "Bluetooth Preferences" on entries list
  * Choose Properties

A dialog will appear, allowing you to change the name for this entry.
Let's assume you want to rename it "Bluetooth" 'cause "Preferences" is
just an unuseful repetition. Change the text in Name entry and click
Close

RESULTS --> the name for menu entry is unchanged 
EXPECTED --> the name for menu entry should change to "Bluetooth" (this is how 
works on upstream GNOME Desktop)

Please note that Alacarte thinks that the name is changed: the "Revert
original" menu item right clicking on the entry in list is now
available.

I think the reason of this behavior is related to X-Ubuntu-Gettext-
Domain addition. Note that performing above steps, Alacarte will simply
create a new .desktop file with the same filename under
$XDG_HOME_DIR/applications: due to desktop file spec from freedesktop,
this file should override the one under /usr/share/applications

It seems like that the name and the comment grabbed through X-Ubuntu-
Gettext-Domain will be always used, even you manually changed them with
above steps.

I think you need to fix X-Ubuntu-Gettext-Domain: ignore it if the
.desktop file is in $XDG_HOME_DIR/applications could be a start point;
ignore it if a translation for current locale is yet availabe (both in
/usr or $XDG_HOME_DIR) could be another solution.

Oh, as a proof that X-Ubuntu-Gettext-Domain is the cause of this mis-
behavior, try to edit a menu entry that don't use it, for example menu
entries for Emacs or any application available in universe repository:

** Affects: gnome-utils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Unable to change Name for .desktop files using X-Ubuntu-Gettext-Domain 
https://bugs.launchpad.net/bugs/159016
You received this bug notification because you are a member of Ubuntu Desktop 
Bugs, which is subscribed to gnome-utils in ubuntu.

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

Reply via email to