Miguel
Miguel

Reputation: 3506

Localize main menu in C#

Good night,

Today I learned about localization in C# and now I need to fully localize my application's main menu. The question is whether there is any way to localize it automatically? Currently, I set at design time each MenuItem's Textproperty to be a given string in the resource file and use recursion on MenuItems, but this doesn't sound elegant at all... Is there any better way?

Thank you very much.

Upvotes: 1

Views: 976

Answers (2)

Emond
Emond

Reputation: 50672

There is a Microsoft-supplied detailed walkthrough on how to accomplish this task:

Walkthrough: Localizing Windows Forms

Upvotes: 1

Alex
Alex

Reputation: 2382

You need to use satellite assemblies to contain your local resources

Upvotes: 0

Related Questions