X hits on this document

195 views

0 shares

0 downloads

0 comments

48 / 67

24

.NET INTERNATIONALIZATION

want to “personalize” your bn-BD culture name (e.g., “bn-BD-Acme”), I use “bn-BDin this example for simplicity. Finally, if you run this example in any version of Win- dows before Windows Vista, you should install support for complex scripts to be able to see the Bengali script.

The following code creates the Bengali (Bangladesh) custom culture:

public static void RegisterBengaliBangladeshCulture() { CreateBengaliBangladeshCultureAndRegionInfoBuilder().Register();

} public static CultureAndRegionInfoBuilder CreateBengaliBangladeshCultureAndRegionInfoBuilder() { CultureAndRegionInfoBuilder builder = new CultureAndRegionInfoBuilder(“bn-BD”, CultureAndRegionModifiers.None);

// there is no neutral Bengali culture to set the parent to builder.Parent = CultureInfo.InvariantCulture;

builder.CultureEnglishName = “Bengali (Bangladesh)”;

builder.CultureNativeName = “

(B

l desh)”;

builder.ThreeLetterISOLanguageName = “ben”; builder.ThreeLetterWindowsLanguageName = “ben”;

builder.TwoLetterISOLanguageName = “bn”;

builder.RegionEnglishName = “Bangladesh”;

builder.RegionNativeName

=

“B

l

desh”;

builder.ThreeLetterISORegionName

=

“BGD”;

builder.ThreeLetterWindowsRegionName = builder.TwoLetterISORegionName = “BD”;

“BGD”;

builder.IetfLanguageTag = “bn-BD”;

builder.IsMetric = true; builder.KeyboardLayoutId = 1081; builder.GeoId = 0x17; // Bangladesh

builder.GregorianDateTimeFormat = CreateBangladeshDateTimeFormatInfo();

builder.NumberFormat = CreateBangladeshNumberFormatInfo(); builder.CurrencyEnglishName = “Bangladesh Taka”; builder.CurrencyNativeName = “Bangladesh Taka”; builder.ISOCurrencySymbol = “BDT”;

Document info
Document views195
Page views195
Page last viewedSun Dec 11 08:58:24 UTC 2016
Pages67
Paragraphs859
Words13458

Comments