Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
swdev:dotnet:localization_using_resx_files [2011/07/14 15:59] smayr [WinForms Localization] |
swdev:dotnet:localization_using_resx_files [2013/12/16 15:26] (current) smayr |
||
---|---|---|---|
Line 8: | Line 8: | ||
* Set Access Modifier to '' | * Set Access Modifier to '' | ||
* Add strings to the Resource file. Eg: '' | * Add strings to the Resource file. Eg: '' | ||
- | * Create other resources files for other languages. For example: | + | |
+ | | ||
* '' | * '' | ||
* '' | * '' | ||
Line 49: | Line 50: | ||
</ | </ | ||
- | * Localize controls. | + | * Localize controls. |
private void frmMain_Load(object sender, EventArgs e) | private void frmMain_Load(object sender, EventArgs e) | ||
{ | { | ||
Line 57: | Line 58: | ||
private void LoadResources() | private void LoadResources() | ||
{ | { | ||
+ | // Optional method to load resources local to this form | ||
// | // | ||
// " | // " | ||
Line 66: | Line 68: | ||
// | // | ||
+ | // Method to load global resources (defined in Program.cs file) | ||
lblFirstName.Text = Program.resmgr.GetString(" | lblFirstName.Text = Program.resmgr.GetString(" | ||
lblLastName.Text | lblLastName.Text | ||
Line 747: | Line 750: | ||
} | } | ||
</ | </ | ||
+ | |||
= Reference Material = | = Reference Material = | ||
Line 754: | Line 758: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[swdev: |