Localizing keymap category programmatically

"winder" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Yes, my problem is that I want to have a localized name override "MyCategory". I can't create a folder for each localized category in case a user changes their localization.

For menu's I'm able to use the "displayName" attribute and at runtime the menu is localized to something other than its folder name. The keybind category doesn't seem to use the displayName attribute so the same strategy isn't working.


markiewb wrote:
> The category is the name of the subfolder where you register your action to.
> 
> F.e. Actions/MyCategory 
> 
> With kind regards, markiewb
> 
> 
> 
> 2016-04-14 14:44 GMT+02:00 winder <address-removed (address-removed)>:
> 
> > My application is localized using a support library included as a wrapped jar. For most of the NetBeans platform this isn't an issue and I'm able to localize things programmatically as needed, but in the case of menu items and keybinding categories I'm having to jump through hoops.
> > 
> > Localized Dynamic Menu
> > 
> > I'm able to programmatically set/override the "displayName" attribute of each folder to localize menu's, this works perfectly.
> > 
> > Localized Action Keymap Category
> > 
> > The last thing I'm not able to localize is the category name in the keymap configuration tab. Is there an attribute I need to set in the action? Or part of the instance object?
> > 
> > Here is the code I'm using to setup the instance/shadow objects and hookup an action:
> > https://github.com/winder/Universal-G-Code-Sender/blob/3432bd5fb8ccc6bca29101c429359ee259c98670/ugs-platform/ugs-platform-ugslib/src/main/java/com/willwinder/ugs/nbp/lib/services/ActionRegistrationService.java#L50 (https://github.com/winder/Universal-G-Code-Sender/blob/3432bd5fb8ccc6bca29101c429359ee259c98670/ugs-platform/ugs-platform-ugslib/src/main/java/com/willwinder/ugs/nbp/lib/services/ActionRegistrationService.java#L50)
> > 
> > 
> > 
> > 
> > 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.