Getting a list of available currencies?

View: New views
3 Messages — Rating Filter:   Alert me  

Getting a list of available currencies?

by Eric Coleman-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

by thomasW :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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" <eric@...>
To: <fw-i18n@...>
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?

by Eric Coleman-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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"  
> <eric@...>
> To: <fw-i18n@...>
> 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=

LightInTheBox - Buy quality products at wholesale price!