|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Existing menus localization » » » » Post: Re: Existing menus localization |
Print at Dec 20, 2025, 4:46:47 PM |
| Posted by hal9000 at May 31, 2013, 11:21:31 AM |
Re: Existing menus localization OK, forget what I said... I centered on the PluginAction constructors and overlooked the ResourceBundle part. If somebody is interested, you can retrieve the name of a menu, lets say the "3D view" menu, like this: ResourceBundle.getBundle("com.eteks.sweethome3d.swing.package").getString("HomePane.VIEW_3D_MENU.Name")This is still not at runtime, but at least with this approach you don't need to copy to your plugin all the translations of the existing menus you want to use. Thanks Emmanuel. ---------------------------------------- If a long walk every day were healthy, mailmen would be immortal. ![]() |
|
|
Current timezone is GMT Dec 20, 2025, 4:46:47 PM |