Step 4: Setting Localization Configuration Settings
There are a few different location settings you can specify in your applications configuration file. This section discusses what these are and how to set them. To open your application configuration file, go to the Visual Studio Solution Explorer and double-click your app.config or web.config file.
Turning on Localization with the LocalizeApp Flag
By default, localization is turned off in MM .NET applications. To turn it on, set the LocalizeApp flag in your application's configuration file to "true" (if this element doesn't exist, simply add it to your config file).For example:
<add key="LocalizeApp" value="true" />Specifying the Default Language
An application's default language is the language that is displayed in the login form before a user enters their credentials (after which the application switches to the language specified for that user). To specify the default language, set the DefaultLanguage attribute in your application configuration file to the primary key of the default language.For example:
<add key="DefaultLanguage" value="2" />Specifying the Localization Database
If your application has more than one database, you need to specify in which database the localization tables are stored. To do this, set the MessageDatabaseKey in your application's configuration file to the key of your localization database (as specified in your business object's DatabaseKey property).For example:
<add key="MessageDatabaseKey" value="Northwind" />
See also:
Step 5: Windows Forms - Adding Localization Menu Bars
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/26/18
Comment or report problem with topic
