- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在尝试为 UI 组件列出所有最常见的时区。通过深入研究 Zend 框架,我发现 supplementalData.xml(由 Zend_Locale
组件使用)有一个元区域列表,其中包含首选的 TZ 数据库时区名称
<mapTimezones type="metazones">
<mapZone other="Acre" territory="001" type="America/Rio_Branco"/>
<mapZone other="Afghanistan" territory="001" type="Asia/Kabul"/>
<mapZone other="Africa_Central" territory="001" type="Africa/Maputo"/>
<mapZone other="Africa_Central" territory="BI" type="Africa/Bujumbura"/>
<mapZone other="Africa_Central" territory="BW" type="Africa/Gaborone"/>
<mapZone other="Africa_Central" territory="CD" type="Africa/Lubumbashi"/>
(...)
我认为这很适合我的需求,我想提取此列表。我不想破解我的库版本,而是想知道是否有办法通过正常方式获取此列表(似乎没有办法,而且似乎没有在任何地方查询此元区域信息)。
谢谢!
最佳答案
我不确定你想要哪一个,但你最好的人选是
$locale->getTranslationList('TerritoryToTimezone');
其中 TerritoryToTimezone
可以与 Zend_Locale
subchapter Obtaining Localized Data 的引用手册中描述的任何标识符交换.
如果这些都不能满足您的需求,您仍然可以 use DOM to parse the XML .
关于php - 我如何从 Zend Framework 的 Zend_Locale 中获取元区域列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3870289/
请提供simple small的文件夹结构和代码zend_translate 和 zend_locale 的应用。 这样我就会有一些想法。我提到了 framework.zend 但无法理解我应该在 C
我需要将序数值即 1st、2nd、3rd 等本地化为各种欧洲语言 Zend_Locale 似乎没有这样做的选项。任何人都知道在 5.2.x 中没有 intl pecl 扩展名的方法吗? 需要明确的是,
我正在尝试为 UI 组件列出所有最常见的时区。通过深入研究 Zend 框架,我发现 supplementalData.xml(由 Zend_Locale 组件使用)有一个元区域列表,其中包含首选的 T
我是一名优秀的程序员,十分优秀!