Using Visual Studio.NET for Internationalization

Visual Studio.NET will manage resources for you and help you to create localized forms and components. Figure 3.4.3 shows the Localizable property being set for a form. Setting this property to true will cause the design time environment to store all the relevant information in the resource file for you.

Figure 3.4.3. Setting the Localizale property.

The InitializeComponent method for Form1 will now contain code to initialize a resource manager and retrieve any information that might change as the application is transferred between locales from the resources.

As you saw with the handmade example ...

Get C# and the .NET Framework: The C++ Perspective now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.