Re: Currencies list?



tis 2005-03-29 klockan 17:41 +0200 skrev Murray Cumming:
> On Tue, 2005-03-29 at 16:32 +0100, Simos Xenitellis wrote:
> > Murray Cumming wrote:
> > 
> > >Does anyone know of a LGPL (or similar) library that can give me a
> > >(translatable) list of currencies (with symbol, name, and country)? I
> > >would like to use this for the numeric formatting options in Glom. 
> > 
> > The currency codes and names are listed in ISO 4217, see:
> > http://www.iso.org/iso/en/prods-services/popstds/currencycodes.html
> > http://www.xe.com/iso4217.htm
> > 
> > What programming language are you interested in? I suppose C?
> 
> Yes, C/C++.
> 
> > There is already a textual domain for currency names, maintained at
> > the Translation Project:
> > http://www.iro.umontreal.ca/translation/registry.cgi?domain=iso_4217
> 
> Thanks, but I'm not sure how I should use this in my application.
> 
> For instance
> - how could I get a list of currencies.
> - how could I get a translation of a currency name, in the current
> locale?

The iso* domains in the Translation Project are what translators see of
the "iso-codes" package (see
http://people.debian.org/~mckinstry/iso-codes-0.45.tar.gz). That package
contains XML files with some or all of the information you list above.
As I understand it, you should be able to depend on that package, and
get the translations from it.


Christian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]