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 757546 - Hotkey editor: Dynamically remove the underscore from the menu entry name
Hotkey editor: Dynamically remove the underscore from the menu entry name
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: Keybindings
git master
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on: 774710
Blocks:
 
 
Reported: 2015-11-03 21:40 UTC by Egmont Koblinger
Modified: 2021-06-10 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Egmont Koblinger 2015-11-03 21:40:26 UTC
terminal-window.c defines the actual menu entries with mnemonic underscores, e.g. N_("C_lose Terminal").

terminal-accels.c defines (almost) the same ones for the shortcut key editor window, but without the underscores: N_("Close Terminal").

This means translators have to work twice, and is prone to not being consistent (e.g. a synonym word is chosen).

We should send only the mnemonic-aware strings to gettext, and dynamically strip the underscore from the translations (if the Gtk+ widget that we use for editing the shortcuts cannot do it automatically).
Comment 1 Christian Persch 2017-10-22 10:01:38 UTC
Turns out this is not as easy as removing an underscore.

For CJK locales the convention is to translate "_Foo" as "[FOO] (_F)", so we'd also need to remove the "(_.)" and the space in front of it.

Also, some menu items have '…' appended, whereas in the accel editor they wouldn't have. Should we strip that too?
Comment 2 Egmont Koblinger 2017-10-22 10:09:29 UTC
Fair enough. I'm fine with wontfix.
Comment 3 GNOME Infrastructure Team 2021-06-10 21:02:03 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7613.