Print at Dec 15, 2025, 7:29:00 PM

Posted by Puybaret at Jan 15, 2024, 9:43:48 AM
Re: Dynamic translation of a plug-in
Yes, that's the idea, but you should rather use a separate static class for the listener to ensure the garbage collector can work correctly when you close a home (see LanguageChangeListener in PhotoRender and many other classes). The preferences instance exists during the whole life of Sweet Home 3D application, so binding to it a home object for example through an anonymous listener created in a plug-in could prevent the home object from being garbage collected.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator