GNOME Bugzilla – Bug 582136
category differentiation in desktop.lang
Last modified: 2009-11-26 15:25:47 UTC
The freedesktop menu spec [1] distinguishes between 3 categories of menu items. Highlighting the "reserved" category in a different color may help avoid Lintian errors [2] when creating Debian packages. [1] - http://standards.freedesktop.org/menu-spec/1.0/apa.html [2] - http://lintian.debian.org/tags/desktop-entry-uses-reserved-category.html Other information:
Created attachment 134380 [details] [review] Patch against desktop.lang of GtkSourceView version 2.6.1 This patch separates the 3 categories into different-colored groups.
Created attachment 134382 [details] effect of patch on color scheme "TrayIcon" is a reserved category; this color scheme makes it stand out.
Splitting the categories sounds good, but it has to wait the next releases since it adds new translated strings. A couple of comments on the patch: - please create the patch with git format-patch or at least create it in the unuified format so that is readable (with "diff -u") - using "def:error" seems a bit excessive, as far as I uderstand those categories are reserved but may be used at some point and I'd prefer old installed version of gedit etc to not show them as errors
Now that we can add new strings, Karl, do you think you could update your patch?
Created attachment 148424 [details] [review] updated patch of desktop.lang against git head (2.9.2?) As per Comment #3 I've replaced "def:error" with "def:note" and created the patch with the command "git format-patch origin". For reference, here is the link to the latest "Registered Categories" spec: http://standards.freedesktop.org/menu-spec/latest/apa.html (it has not changed between version 1.0 and the current 1.1 spec)
Patch pushed with minor fixes. Thanks a lot for it.