2008年8月25日星期一

Re: [fw-mvc] Zend_Currency

1) Zend_Currency accepts only locales which also provide a currency.
As de_US is not a known locale and provides no data, it is not accepted as
input for Zend_Currency.
How should it then know which currency to use ? ;-)

2) Define it manually

3) Ask unicode from which you referred. The data is from them. :-)

4) Next time you should ask in the I18N of general list as Zend_Currency has
nothing to do with MVC.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message -----
From: "Paul Shoemaker" <paul.shoemaker@helloecho.com>
To: <fw-mvc@lists.zend.com>
Sent: Tuesday, August 26, 2008 12:51 AM
Subject: [fw-mvc] Zend_Currency


> Hello,
>
> I am having a problem with Zend_Currency, specifically with the locale
> specification. For example if I set the currency to de_US it is rejected
> and returns an exception. According to
> http://unicode.org/cldr/data/diff/supplemental/languages_and_territories.html
> (the reference material for Zend_Currency pointed me here), de_US
> _should_ be an accepted standard. I take it that the asterisk above the
> Language code probably means that it is not an accepted universal
> standard ... not really sure there though. I guess my questions are
> several:
>
> 1. why is de_US not support in Zend_Currency when it is in the CLDR
> spec?
> 2. is there any way to specify currency by country only in the event
> that the given country for a language does not exist in the directory?
> 3. it seems to me that it is perfectly valid for a non english speaking
> client to be based in a dollar based region such as the united states but
> that combination of locale doesn't exist for all languages ... does
> anyone know why?
>
> Thanks for your help!!
>
> Paul Shoemaker | LAMP Developer
> paul.shoemaker@helloecho.com
>
> echo | Hello. Hello. | helloecho.com
>
> The information contained in this message is intended only for the use
> of the individual or entity named above. If the reader of this message
> is not the intended recipient, or the employee or agent responsible for
> delivering it to the intended recipient, you are hereby notified that
> any dissemination, distribution, or copying of this communication is
> strictly prohibited.

没有评论: