Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio

UserControl with Label

I created a usercontrol with a Label in it. The Text of the Label is set by property from the hosting form. I named the property 'Caption'. In the form you can use it like this: .Caption = "aktueller Wert".

Now I would like to translate these Captions, but the MultiLanguage-Tool doesn't recognize the Caption-Property. Is there a way that I can tell the tool to recognize my property? Or how can I manage it to translate my Captions?




Assuming it is a Windows Forms project, you will have to add the Localizable attribute to your property. In C# it is something like this.

public string Caption { get; set; }

For VB you must use triangular brackets instead of square brackets.


Perfect! That's what I was looking for.
Thank you!