Stefan Bender Posted September 4, 2019 Share Posted September 4, 2019 Hi there, how can I find out the localized name of a plug-in (not the one that is currently running) if I only have its universal name? There is an SDK function GetLocalizedPluginName but it is faulty and just returning the universal name. Thanks for any help! Quote Link to comment
Nicolas Goutte Posted September 5, 2019 Share Posted September 5, 2019 (edited) Has the Plug-Ins a localized named at all? Tools, menus, objects have translations, but Plug-Ins? (At least in C++, I do not think that they have any.) Edited September 5, 2019 by Nicolas Goutte Quote Link to comment
Stefan Bender Posted September 5, 2019 Author Share Posted September 5, 2019 I meant the tool resp. menu title in STooldef and SMenuDef structures. Quote Link to comment
Nicolas Goutte Posted September 5, 2019 Share Posted September 5, 2019 If I remember well, a few years ago, I tried to get that translated name too... and I have not found a way. So, unfortunately, I am not the one who can help. Quote Link to comment
JBenghiat Posted September 5, 2019 Share Posted September 5, 2019 I think GetLocalizedPluginName() refers to plug-in object. I think the assumption is that you would not usually present the name of a randomly selected menu or tool to the user, unlike with PIO’s where you may need to process a user-selected object. For any calls you would use either the IID or the universal name. If you’re trying to get the localized name of a specific menu or tool, you can always get the resource string using the full path. For core menus, for example, just explore VectorWorks.vwr and find the file and resource ID of the tool or menu you want. This is even easier if the tool or menu is in your own .vwr Quote Link to comment
Stefan Bender Posted September 5, 2019 Author Share Posted September 5, 2019 Hi Joshua, thanks for your reply. But the problem is to get the localized name (title) if I only have the universal name but no other information such as location of string "resources". Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.