从PHP中的CLDR获取本地化的货币显示名称

从PHP中的CLDR获取本地化的货币显示名称

问题描述:

I need to output localized currency names on a webpage.

USD | ameriški dolar

EUR | euro

I can't seem to find a way to do it through the intl library, although the data is present in Unicode CLDR.

E.g. Slovenian http://www.unicode.org/repos/cldr/tags/latest/common/main/sl.xml

Is there any way to use this data, aside from parsing and locally storing data from the remote CLDR XML files for each display language I have?

我需要在网页上输出本地化的货币名称。 p>

USD | ameriškidolar p>

EUR | euro p>

我似乎无法通过intl库找到一种方法,尽管数据存在于Unicode CLDR中。 p>

例如。 斯洛文尼亚语 http://www.unicode.org/repos/ cldr / tags / latest / common / main / sl.xml p>

除了解析和本地存储来自远程C​​LDR XML文件的数据之外,有没有办法使用这些数据 对于我有的每种显示语言? p> div>

You may need a library like commerceguys/intl, which has a getName() method.