Skip to content
perpetualKid edited this page Apr 7, 2021 · 2 revisions

GetText.NET.WindowsForms

In combination with GetText.Net.WindowsForms, also WinForms Controls Text-properties such as Button.Text or Control.HeaderText can be translated. The Extractor will automatically export all literal string assignments from .Text/HeaderText/ToolTipText properties, which are typically saved in the (Form1).Designer.cs files.

Form1.Designer.cs

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
    this.someButton.Text = "Hello World";
    ...
}
Clone this wiki locally