After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 560119 - More sensible main menu item ordering for translators
More sensible main menu item ordering for translators
Status: RESOLVED OBSOLETE
Product: gnome-menus
Classification: Core
Component: layout
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
Depends on:
Blocks:
 
 
Reported: 2008-11-10 10:01 UTC by Djihed Afifi
Modified: 2021-05-25 12:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Djihed Afifi 2008-11-10 10:01:52 UTC
In the main menu under applications, there are a number of entries: "Accessories", "Others", "Programming", etc...

When translated for Arabic, the word "Others" has the highest order, and thus by default, it is placed first in the list. I've had multiple complaints about this from Arabic GNOME users.

This is less than satisfactory, it would be more logical to have "Others" at the end of the list, after "Accessories", "Systems tools", and the rest of them.

The solution is to allow translators to input default order values for these entries, as I am aware that they can be ordered. Or by default, give the item "Order" the lowest order value so it end up always to the end of the list.
Comment 1 Vincent Untz 2008-11-10 11:59:36 UTC
(In reply to comment #0)
> The solution is to allow translators to input default order values for these
> entries, as I am aware that they can be ordered. Or by default, give the item
> "Order" the lowest order value so it end up always to the end of the list.

I don't think it's possible to change the order based on the locale, without a change to the menu spec.

The second solution is possible with this at the end of /etc/xdg/menus/applications.menu:

   <DefaultLayout>
     <Merge type="menus"/>
     <Menuname>Other</Menuname>
     <Merge type="files"/>
   </DefaultLayout>

(Can you check it works?)

One issue, though, is that I'm not sure the change makes sense in all locales. For example, in French, this might look weird. It might be worth discussing this on gnome-i18n.

(also, an alternative is to use another translation: you can use something different than Other if needed)
Comment 2 Djihed Afifi 2008-11-10 12:31:14 UTC
Thanks Vincent, this works:

<Layout>                                                                                                                                                
   <Merge type="menus"/>
   <Menuname>Other</Menuname>
   <Merge type="files"/>
 </Layout>

(Layout instead of DefaultLayout, inside <menu>).

I don't think there is an easy on the ear alternative translation though. But I agree that this needs some discussion in gnome-i18n first.
Comment 3 Vincent Untz 2008-11-10 12:38:11 UTC
DefaultLayout should be fine too. I'm on gnome-i18n, so I'll try to monitor the discussion and participate, but you should still feel free to ping me if there's a consensus at the end -- so I don't forget about this :-)
Comment 4 Vincent Untz 2009-03-03 16:04:42 UTC
Hrm, so, I think there was no consensus on gnome-i18n. Djihed, can you possibly restart the thread?
Comment 5 André Klapper 2021-05-25 12:45:57 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/gnome-menus/-/issues/

Thank you for your understanding and your help.