ok, i see. for an accelerator i suggest you write a mini plugin and register it with the workbench. make sure the enablecheck checks that your dialog has focus, so it does not get executed wildly. but you can try a standard accelerator first. an OJ shortcut would overrule it though and it wouldn't show up in the shortcut info under Help.
with regards to mnemonics - afaik they do not exist on Mac http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html just checked OJ on Mac and even though OJ has them by default for the main menu's, the characters are not underlined. so using the Cmd key is effectively using a plain shortcut. you can easily ask your jre to give a proper description string for a KeyStroke. like private String getKeyStrokeText(KeyStroke stroke) { String mod = KeyEvent.getModifiersExText(stroke.getModifiers()); String out = (mod.length() > 0 ? mod + "+" : "") + KeyEvent.getKeyText(stroke.getKeyCode()); return out; } whatever the shortcut then, it'll print out the proper string (eg. Alt+key on win, Cmd+key on mac) for usage in your translation text. i use that in ShortcutKeysPlugin. finally, if you switch over to a shortcut i suggest you stick with an identical one for all platforms (with Ctrl being Cmd on mac being the exception). so either Alt+R or Ctrl/Cmd+R would be fine, seems like they currently unused. if you use JumpWorkbenchFrame.addKeyboardShortcut(KeyStroke stroke, PlugIn plugIn) a Ctrl+key shortcut is automagically mapped to Cmd+key on Mac. ..ede On 15.05.2013 05:55, Larry Reeder wrote: > Thanks Ede. I'm aware of the differences in Cmd on MacOS and Alt elsewhere. > Cmd is the "mouseless modifier" (see > http://docs.oracle.com/javase/6/docs/api/javax/swing/AbstractButton.html#setMnemonic%28int%29) > that the JRE chooses to use on Mac. This particular functionality was > submitted as a patch by an OJ user who used MacOS as a primary workstation. > Admittedly, the "cmd+r" makes no sense for someone who is not using OJ on a > Mac. I'd like to say something like "mouseless modifier+r", but that's not > going to make sense to anyone - Mac, Linux, or Windows. > > And, this particular shortcut/mnemonic isn't working quite right for me on > Linux, so I'll have to patch it anyway, and may remove the mnemonic and use > an accelerator instead. So, in the interest of moving forward, I'd like to > sidestep the issue by dropping "cmd+r" from the string. Instead, can you > just translate this: > > dbquery.tooltip.refresh.layer=Refresh the layer created by the current query > > > Thanks......... lreeder > > > > On Tue, May 14, 2013 at 3:02 AM, <edgar.sol...@web.de > <mailto:edgar.sol...@web.de>> wrote: > > ok, guessed so. > but be aware, Cmd on mac is used (confusingly) like Ctrl on other > operating systems. e.g. copy/paste Ctrl+C vs Cmd+C, Ctrl+V vs Cmd+V, ... > additionally Cmd+Left Click is expected to show the context menu for on > button mice (gotta love your legacy ;) > > so, Cmd is actually not a MacOS Alt key replacement. instead the Option > key > http://en.wikipedia.org/wiki/Option_key > is mapped as Alt key and also available as such. > > as i see it. you should > - change your code to use Alt on all platforms > - use the exact key name, if keys differ on platforms, so users don't > start searching for keys they do not have ;) > > do want me to finish the translation disregardless ? > > ..ede > > > but you should use java to tell you which string (Alt vs. Cmd) to show, > as windows users might get confused over the key not existing on their > keyboard. > > On 14.05.2013 05:20, Larry Reeder wrote: > > Hey Ede, > > > > "cmd" is the "mouseless modifier" key to trigger the mnemonic. It's > Alt on Windows and Linux, and Cmd on MacOS. > > > > -Larry > > > > > > On Sat, May 11, 2013 at 12:55 PM, Rahkonen Jukka > <jukka.rahko...@mmmtike.fi <mailto:jukka.rahko...@mmmtike.fi> > <mailto:jukka.rahko...@mmmtike.fi <mailto:jukka.rahko...@mmmtike.fi>>> wrote: > > > > Hi, > > > > Finnish translation attached. It may need some fine tuning once I > will see it in the real UI. > > > > -Jukka Rahkonen- > > > > ________________________________ > > Larry Reeder wrote: > > > > > All, I need help translating the strings in the Jump DB Query > Plugin. I've got English covered :-), but if you speak something else, > please provide a translation for the strings in the attached file. Note that > one of the values is parameterized: > > > > dbquery.query.info <http://dbquery.query.info> > <http://dbquery.query.info><http://dbquery.query.info>=Query returned > {0,number,integer} features in {1,number,integer} {2} > > > > The parameters are in the { } braces, and the code will fill those > portions in. With parameters filled in, in English, this would read > something like: "Query returned 15 features in 23 seconds. " > > > > I just need the part outside the braces translated. Thanks! > > > > > > -lreeder > > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > > > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel