.NET format (ResourceBlender)

From Lime 49 Wiki
Jump to: navigation, search

.NET uses bundles to represent forms. For example: A bundle called FrmMain in an application which uses English and Czech would generate FrmMain.en.resx and FrmMain.cs.resx. .NET can also make use of generic bundles which can be used by any class by creating a new ResourceManager object.

To localize a form automatically, set it's localizable property to true. Everything else is automatic.

To access a bundle manually (programatically), use ResourceManager.

For Example:

ResourceManager lang = new ResourceManager("projectName.SomeBundle", Assembly.GetExecutingAssembly());

string someElement = lang.GetString("MyElement");


Back to ResourceBlender Help Contents

Personal tools