[texworks] Shortcuts and accelerators
Jonathan Kew
jfkthame at googlemail.com
Fri Apr 16 16:38:32 CEST 2010
On 16 Apr 2010, at 15:26, Alain Delmotte wrote:
> Hi!
>
> Not much enthusiasm responding to my previous message!!! :-(((
Sorry, I was intending to comment on it, just didn't get to it yet.
>
> Any way, I did find a better way to do it, which preserve the ability to have other languages.
> I did keep the source as it is, but, using lupdate (part of the linguist system for translations), I did create an English translation (TeXworks_en.ts file) in which I have started to implement the shortcuts/accelerators and, after releasing the .qm file and putting it in "/texworksresource/translation, when I select English in the preferences (I normally use System default [French]) I get the underlined letters in the menu!!!
I wondered if that would be a sensible approach. If we add accelerators to the built-in menu items (etc) in the source, then presumably all the translations would need to be updated because this will affect the "source" strings, and so the existing translations won't match any more. This would also clutter the original strings that translators see, which might be confusing.
>
> I'll complete that for my French translation and, if asked, for English.
Sounds good to me.
If I recall correctly, there may be a few dialog-control accelerators already in the source. What I think we should probably do is to *remove* these (which will require updates to the various .ts files, I realize), and let ALL accelerators be defined through the .ts files.
(Note that I'm only referring to "accelerators" here - the possibly-underlined characters in menu items, button names, etc - not to the "shortcuts" that appear separately in menu items. I think those may as well stay in the main source files, although translators can of course customize them as part of localization.)
Thanks!
JK
>
> Attached is the .qm file with, only for now, the underlined letters for the menu.
> If someone wants to test and report!!
>
> Alain
>
> <TeXworks_en.qm>
More information about the texworks
mailing list