On Thu, 05 Mar 2015 14:49:59 -0000, Rob Kendrick
<r...@netsurf-browser.org> wrote:
On Thu, Mar 05, 2015 at 02:26:26PM -0000, WPB wrote:
Couldn't the messages in the UI messages file contain a special
character to denote the start of a keyboard shortcut? Something that
wouldn't make sense for a menu item, like a CR? I suppose that's not
very friendly in terms of the messages file itself, so maybe
something else, like a forward slash.
The ro_gui_translate() (if that is the right function - I haven't
looked) could be passed an extra parameter to either truncate the
string at that point, or remove the special character from the
string.
I think the strings are handed around as const char *; processing them
would involve making copies in memory.
B.
I wondered if that might be the case. Fair enough, then. Perhaps the
duplicate messages option is cleanest without a large development
overhead. Bit of a headache for internationalizing, but I think the
FatMessages file uses a dot-separated hierarchical structure for key
names, doesn't it? So you could have en.ro.AppHelp and
en.ro.AppHelp.NoFunc, for example, to keep it clean, perhaps?