Resource editor
-
In C# resource editor let say I am putting a label string say "Hello Label". Resource editor generate the code for it in InitializeComponent() like this.lblMessage.Text = "Hello Label"; I am coding for multiple languages (German/French). So it create lot of problem for me. I have to change all these lines to this.lblMessage.Text = resManager.GetString("txtHello"); I am storing all these messages in a MyApp.resx files and maintaining a separate .resx file for each language like for German there is a MyApp.de.resx and setting the UICulture in my code. Is there any simpler way for this? Sonork ID 100:25668
-
In C# resource editor let say I am putting a label string say "Hello Label". Resource editor generate the code for it in InitializeComponent() like this.lblMessage.Text = "Hello Label"; I am coding for multiple languages (German/French). So it create lot of problem for me. I have to change all these lines to this.lblMessage.Text = resManager.GetString("txtHello"); I am storing all these messages in a MyApp.resx files and maintaining a separate .resx file for each language like for German there is a MyApp.de.resx and setting the UICulture in my code. Is there any simpler way for this? Sonork ID 100:25668
I think you can do the same thing using the properties editor. First set the
Localizable
property on the form to true, then set the form'sLanguage
property to the first language. Now proceed to set all of the properties that need localized strings. Then change the Language property to the next language, and change all of the localized strings, repeat. I did this while playing around a couple months ago and it seemed to produce what you want. James "It is self repeating, of unknown pattern" Data - Star Trek: The Next Generation -
I think you can do the same thing using the properties editor. First set the
Localizable
property on the form to true, then set the form'sLanguage
property to the first language. Now proceed to set all of the properties that need localized strings. Then change the Language property to the next language, and change all of the localized strings, repeat. I did this while playing around a couple months ago and it seemed to produce what you want. James "It is self repeating, of unknown pattern" Data - Star Trek: The Next GenerationThank you James Sonork ID 100:25668