Windows Develop Bookmark and Share   
 index > Windows Forms General > Localization for custom User Controls not Translating with rest of application when installed
• Windows Forms General
• Windows Forms Designer
• ClickOnce and Setup & Deployment Projects
• Windows Forms Data Controls and Databinding
• Windows Forms Sample Applications

Localization for custom User Controls not Translating with rest of application when installed

Hello all,

I've recently been implementing French (Canadian) localization for my C# product and have run into a small issue. My solution is broken into a number of sub-projects. The main project, we'll call it MainApp, utilizes another project, lets call is WeatherMessage. WeatherMessage it built around a message object which uses a number of "sets". These sets have a base class, WeatherSet. So we have say "Foxtrot" which should inherit all methods and whatnot from WeatherSet. The WeatherMessage is managed by another class, WeatherManager. It manages the validation, storage, etc for all the Messages. For these classes, the WeatherManager contains the translation code (MainApp has its own of course).

Now, in Visual Studio, I can run in Debug OR Release mode, and the sets translate properly. However, when I build the application installer, the INSTALLED version does *not* translate the sets. Its quite bizzare. I can build completely in release mode, run the executable from the build folder (not through VS) and it translated fine. It is not until it is *installed* that it seems to have an issue.

Im not sure what in the world could be causing this issue, but if anyone has encountered this before when dealing with Windows Forms, please give me any suggestions you have!

Cheers,
SoonerThenNow  Tuesday, August 05, 2008 12:28 PM

Hi SoonerThenNow

You question is caused because you didn’t add the Localized Resource to your Setup project so the language resource is missing in the application.

To fix the problem, right click on the Setup Project and choose the “Add?à ”Project Output? select the “Localized Resource?of your project then build.

Wish you can solve this problem soon.

Best Regards,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Friday, August 08, 2008 4:12 AM

Hi SoonerThenNow

You question is caused because you didn’t add the Localized Resource to your Setup project so the language resource is missing in the application.

To fix the problem, right click on the Setup Project and choose the “Add?à ”Project Output? select the “Localized Resource?of your project then build.

Wish you can solve this problem soon.

Best Regards,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Friday, August 08, 2008 4:12 AM

You can use google to search for other answers

 

More Threads

• richtextbox
• ICorRuntimehost, start method is failing
• How to add values to a combobox at design time so they actually exist and can be selected?
• Load webBrowser with a stream
• How to make a multi lingual Windows Forms application in C#
• Stuck up with textbox validations
• Make trail time??
• a
• Problem with the autoscroll and painting.
• Richtextbox->selectioncolor, how to use?