Professional Documents
Culture Documents
Purpose
Overview
Localization means "process of customizing data and translating resources for a specific
culture", and
Implementation
For UK Market
CultureInfo currentUICulture =
new CultureInfo(cultureCode);
Thread.CurrentThread.CurrentUICulture = currentUICulture;
If you want resource files for the particular market u can create the file with
naming convention as follows:
You can read the value from the resource files and can assign to your webcontrols.
protected ResourceManager rm =
new ResourceManager("ResourceText",
Assembly.GetExecutingAssembly());
To set the current culture currency pass the current culture as IFormateprovider to
ToString method.
Convert.ToDouble(“45,000”).ToString("C",
Thread.CurrentThread.CurrentUICulture)
Output :
$45,000.00
Output :
27/03/2006
CultureInfo currentUICulture =
new CultureInfo(cultureCode);
Thread.CurrentThread.CurrentUICulture = currentUICulture;
If you want resource files for the particular market u can create the file with
naming convention as follows:
You can read the value from the resource files and can assign to your webcontrols.
protected ResourceManager rm =
new ResourceManager("ResourceText",
Assembly.GetExecutingAssembly());
To set the current culture currency pass the current culture as IFormateprovider to
ToString method.
Convert.ToDouble(“45,000”).ToString("C",
Thread.CurrentThread.CurrentUICulture)
Output :
4.500€
Output :
27.03.2006