dotnet / ResXResourceManager

Manage localization of all ResX-Based resources in one central place.
MIT License
1.32k stars 217 forks source link

Support for .vsct files would be nice! #643

Closed ErikEJ closed 3 months ago

ErikEJ commented 4 months ago

Basically the button text in these files: https://github.com/ErikEJ/EFCorePowerTools/tree/master/src/GUI/EFCorePowerTools

tom-englert commented 3 months ago

That would be a tough job, since .vsct and .resx have nothing in common.

A much simpler solution, that also avoids the need to maintain multiple .vsct files is this: https://github.com/dotnet/ResXResourceManager/blob/d5651be61ddf2340311b36a0010016210787678a/src/ResXManager.VSIX/VSPackage.cs#L306

ErikEJ commented 3 months ago

Elegant!

ErikEJ commented 3 months ago

Looking at this, never knew there was a OleMenuCommand with the .Text property 😢

ErikEJ commented 3 months ago

Note to self: requires this CommandFlag for the Button in the .vsct file:

<CommandFlag>TextChanges</CommandFlag>