GNOME Bugzilla – Bug 560119
More sensible main menu item ordering for translators
Last modified: 2021-05-25 12:45:57 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.
(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)
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.
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 :-)
Hrm, so, I think there was no consensus on gnome-i18n. Djihed, can you possibly restart the thread?
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.