X hits on this document

261 views

0 shares

0 downloads

0 comments

49 / 67

CUSTOM CULTURES

builder.TextInfo = CultureInfo.InvariantCulture.TextInfo;

builder.CompareInfo = CultureInfo.InvariantCulture.CompareInfo;

return builder;

}

The bn-BD parent is the invariant culture. You might want to consider creating this culture in two steps, first creating a neutral Bengali culture and then creating a specific Bengali (Bangladesh) culture. There are a few values for which you should seek out a standard:

  • The culture name, bn-BD, is obviously of critical importance, and you should seek out existing codes (if any) for this purpose. A list of language codes can be found at http://www.w3.org/WAI/ER/IG/ert/iso639.htm. Alternatively, the official ISO list can be purchased from http://www.iso.org (search for “639”). The list of country codes is available from http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code- lists/list-en1.html. Alternatively, the official ISO list can be purchased from http://www.iso.org (search for “3166”).

  • The GeoId value is available from Microsoft’s Table of Geographical Loca- tions (http://msdn.microsoft.com/library/default.asp?url=/library/en- us/intl/nls_locations.asp). If your geographical region is not listed in this table, you will have to either leave the ID blank or choose a number that is not in use (of course, the number could subsequently become used for a com- pletely different geographical region, which would invalidate your choice).

The CultureAndRegionInfoBuilder.NumberFormatInfo is assigned from the CreateBangladeshNumberFormatInfo method:

private static NumberFormatInfo CreateBangladeshNumberFormatInfo() {

NumberFormatInfo numberFormatInfo = new NumberFormatInfo(); numberFormatInfo.CurrencyDecimalDigits = 2; numberFormatInfo.CurrencyDecimalSeparator = “.”; numberFormatInfo.CurrencyGroupSeparator = “,”; numberFormatInfo.CurrencyGroupSizes = new int[] numberFormatInfo.CurrencyNegativePattern = 12; numberFormatInfo.CurrencyPositivePattern = 2; { 3, 2 };

25

Document info
Document views261
Page views261
Page last viewedTue Jan 24 03:45:34 UTC 2017
Pages67
Paragraphs859
Words13458

Comments