List Info

Thread: Getting a list of available currencies?




Getting a list of available currencies?
user name
2007-12-06 00:04:56
Got a question,

How would I go about getting a list of "possible"
currencies to use in  
ZF?  I'd also like to possible have it output an actual
value in this  
listing... like so:

United States Dollar - $ 6.95
Euro   - £ 6.95

(i.e. second value is how the currency "would"
look)

Thanks,
Eric
Re: Getting a list of available currencies?
user name
2007-12-06 01:02:38
See the informational methods of Zend_Locale:
$locale->getTranslationList();
for avaiable currencies.

The returned list depends on the set locale.

Related to list:

You will have to set a fixed format because within each
language the 
currency is formatted different.
Otherwise your list would f.e. look like this:

$ 4,500.00
4.500,00 €
4 500,00 FR

and so on...

Greetings
Thomas
I18N Team Leader

----- Original Message ----- 
From: "Eric Coleman" <ericaplosmedia.com>
To: <fw-i18nlists.zend.com>
Sent: Thursday, December 06, 2007 7:04 AM
Subject: [fw-i18n] Getting a list of available currencies?


Got a question,

How would I go about getting a list of "possible"
currencies to use in
ZF?  I'd also like to possible have it output an actual
value in this
listing... like so:

United States Dollar - $ 6.95
Euro   - £ 6.95

(i.e. second value is how the currency "would"
look)

Thanks,
Eric= 


Re: Getting a list of available currencies?
user name
2007-12-06 06:32:47
Thank you.

On Dec 6, 2007, at 2:02 AM, Thomas Weidner wrote:

> See the informational methods of Zend_Locale:
> $locale->getTranslationList();
> for avaiable currencies.
>
> The returned list depends on the set locale.
>
> Related to list:
>
> You will have to set a fixed format because within each
language the  
> currency is formatted different.
> Otherwise your list would f.e. look like this:
>
> $ 4,500.00
> 4.500,00 €
> 4 500,00 FR
>
> and so on...
>
> Greetings
> Thomas
> I18N Team Leader
>
> ----- Original Message ----- From: "Eric
Coleman"  
> <ericaplosmedia.com>
> To: <fw-i18nlists.zend.com>
> Sent: Thursday, December 06, 2007 7:04 AM
> Subject: [fw-i18n] Getting a list of available
currencies?
>
>
> Got a question,
>
> How would I go about getting a list of
"possible" currencies to use in
> ZF?  I'd also like to possible have it output an actual
value in this
> listing... like so:
>
> United States Dollar - $ 6.95
> Euro   - £ 6.95
>
> (i.e. second value is how the currency
"would" look)
>
> Thanks,
> Eric=


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )