! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Some application names are not localized in applications menu
Status:
RESOLVED: FIXED
Product:
Libxfce4util
Component:
General

Comments

Description Thomas Lange 2017-11-07 01:16:27 CET
Created attachment 7421 
Screenshot of the issue

Since upgrading the package gnome-calculator to 3.26.0, the item in the application menu is no longer localized.
Please see the attached screenshot. "Calculator" should be "Taschenrechner", like with previous versions.

I have noticed that the order of the "Name" fields is different in the .desktop file.

Working:
[Desktop Entry]
Name=Calculator
Name[de]=Taschenrechner
...

Not working:
[Desktop Entry]
Name[de]=Taschenrechner
Name=Calculator
...

According to desktop-file-validate both versions are valid. So this seems to be a bug in either xfce-panel or Garcon.

System:
Arch Linux (up-to-date)
xfce-panel 4.12.1
garcon 0.6.1
Comment 1 Simon Steinbeiss editbugs 2017-11-15 23:23:04 CET
Could you quickly confirm that this bug is also exposed in xfdesktop's application menu?

Both xfdesktop and the panel use garcon to handle these menus so I would presume the bug is with garcon, but by trying out the above you could very quickly confirm that. Thanks!
Comment 2 Thomas Lange 2017-11-15 23:30:37 CET
The application menu shown when right-clicking on the desktop has the same bug.
Comment 3 Simon Steinbeiss editbugs 2017-11-15 23:52:23 CET
Ok, thanks. Moved the issue to Garcon.
Comment 4 Thomas Lange 2018-05-31 23:05:42 CEST
The bug is not in Garcon but libxfce4util, reassigned.
Comment 5 Thomas Lange 2018-05-31 23:06:57 CEST
Created attachment 7763 
Simple reproducer for this bug report
Comment 6 Thomas Lange 2018-05-31 23:08:11 CEST
Created attachment 7764 
Patch to fix this issue
Comment 7 Thomas Lange 2018-05-31 23:09:12 CEST
Created attachment 7765 
And another (unrelated) cleanup patch
Comment 8 Andre Miranda editbugs 2018-06-08 04:52:22 CEST
*** Bug 13683 has been marked as a duplicate of this bug. ***
Comment 9 Git Bot editbugs 2018-06-10 19:06:11 CEST
Thomas Lange referenced this bugreport in commit ffc7a0a8bd63c154563f27c268183576e61c9d24

Allow language-specific keys before language-neutral ones (Bug #13979)

https://git.xfce.org/xfce/libxfce4util/commit?id=ffc7a0a8bd63c154563f27c268183576e61c9d24
Comment 10 Skunnyk editbugs 2018-06-10 19:07:17 CEST
Thank you for the patches and the reproducer !

Bug #13979

Reported by:
Thomas Lange
Reported on: 2017-11-07
Last modified on: 2018-06-10
Duplicates (1):
  • 13683 If Name is last in .desktop file translation is not used

People

Assignee:
Eric Koegel
CC List:
4 users

Version

Version:
4.13.1

Attachments

Screenshot of the issue (56.79 KB, image/jpeg)
2017-11-07 01:16 CET , Thomas Lange
no flags
Simple reproducer for this bug report (784 bytes, text/x-csrc)
2018-05-31 23:06 CEST , Thomas Lange
no flags
Patch to fix this issue (2.47 KB, patch)
2018-05-31 23:08 CEST , Thomas Lange
no flags
And another (unrelated) cleanup patch (1.47 KB, patch)
2018-05-31 23:09 CEST , Thomas Lange
no flags

Additional information