Web.config
In order to enable localization, you have to make the following change to the web.config file:
|
<system.web>
<globalization culture="en-US" uiCulture="en-US"/>
.....
.....
</system.web>
|
|
This enables globalization/localization and sets the default language to English and the default culture to USA. If you use the VS2008 tool for the creation of local resource files, it will create the resource file for the default language and default culture, without specifying those in the file name. For instance: “Default.aspx.resx” instead of “Default.aspx.en-US.resx”.
|
Directory Structure
|
The picture to the left shows the directory structure used for my multi-language PersonalWebSite. Note: the “App_GlobalResources” and “App_LocalResources” directories for the main site, and the “App_LocalResources” directory under the “Private” site administration directory. The “App_GlobalResources” directory contains the sitemap localizations. The “App_LocalResources” directories contain the translations of the “loose strings” for the various pages.
Also note the “Buttons” and “Icons” directories under the “Images” directories in the “White” and “Black” directories in the “App_Themes” directory, as well as the “Characters” directory under the “Images” directory. These directories are used by the DynamicButton server control (see: the Image Button section).
The “Originals” and “Thumbnails” directories under the “Images” directory are used for storage of multi-media files (photographs and movies).
|
|
Useful References:
The following third party controls are used in this website: FCKeditor.Net: download from: FCKeditor.Net. YUIAsp.Net ColorPicker (Yahoo colorpicker with an Asp.Net wrapper): download from: YUIAsp.Net.
In addition I have modified code originating from: Jeremy Wadsworth: download from: JeremyWadsworth.com (Registration required).
Download
Download the code samples (Registration required).
|