Last post May 18, 2005 05:55 PM by Caddre
May 10, 2005 05:56 AM|pha2er|LINK
I have hunted hi and low and i can't find anything that will help me.
I have a whole bunch of culture's e.g. en-US, en-GB, fr-FR, de-DE etc. etc.
and I also have a whole bunch of currencies e.g. GBP, USD, EUR, CAD etc. etc.
I need a way of matching the culture, with the currency!
Does anyone know of any resource out there that will tell me which culture uses which currency? I'm just going to build a huge Select Case for each one, so I only need something as simple as:
en-GB = GBP
en-US = USD
en-CA = CAD
and so on... can anyone help?
May 12, 2005 01:17 AM|shravan79|LINK
Do u have access to MSDN. I just checked something for u. The CultureInfo object when instantiated takes a string variable something like en-GB as u know. The second set or Capitalized characters represent the country/region formatted using ISO 3166. The
same way the RegionInfo object could be instantiated by this 2 letter word for eg..
cultureInfo enGB = new CultureInfo("en-GB");
RegionInfo gbInfo = new RegionInfo(enGB.Name.SubString(..get the last two characters);
the currency associated with this gbInfo would be in gbInfo.ISOCurrencySymbol. I dont see a reason why u would want to manually assign the Currencies when something like this is already available.
I hope this helps.
May 18, 2005 05:55 PM|Caddre|LINK
This link and download the localization tool kit. Hope this helps.