[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key bindings proposal

From: Jason Rumney
Subject: Re: Key bindings proposal
Date: Sat, 28 Aug 2010 18:13:25 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20100802 Thunderbird/3.1.2

 On 28/8/2010 5:41 PM, Jan Djärv wrote:

Sure, but putting in stuff like :key-accel makes translation harder and you have to add lisp and C code to handle it. Text properties exist now.

It is trivial to make a function that takes for example "_File" and turns this into a string with "File" and a text property on F.

It's not significantly more difficult than a function that replaces both the menu text and the :key-accel (or :mnemonic to use the GTK and Motif name rather than the MS Windows one) property given the menu item that is being translated and the translation string as above.

The interface should be what is easy for the users of the function, not what is slightly easier for the person who implements the feature.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]