GNOME Bugzilla – Bug 757546
Hotkey editor: Dynamically remove the underscore from the menu entry name
Last modified: 2021-06-10 21:02:03 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).
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?
Fair enough. I'm fine with wontfix.
-- 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.