General information
Category:
The Mere Mortals .NET Framework
Hi,
I'm trying to put localization support into our application. The problem is that the form/control captions do not switch to the user's language at runtime until I go into the language setup window and choose the language from the dropdown list. In other words, the form's controls keep their design-time caption text at runtime until I manually activate the language setup menu bar.
This behavior is also present when there is only one language in the language table (eg; renaming the default English language to Norwegian and changing the english text in the message table to norwegian text). I have tried having the language tables in the application's database as well as in a separate language database, both give the same problem.
I have done the following :
1. Used scripts MMLocalize.sql and MMSecurity.sql
2. Set key LocalizeApp in app.config to the value "true"
3. Set key DefaultLanguage in app.config to the value "2"
4. Run the application and put in Norwegian as a language (which has a primary key of 2)
5. Changed the language of user MM to Norwegian.
The menu captions are still in English (the language of the caption at design time) when I log in with user MM. It is not until I choose the File -> Lokalization Setup... that the captions change to the desired language. How do I ensure that the user's language is loaded at login?
Sincerely,
Einar
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only