zend-framework 如何本地化 Zend_Date
如何本地化 Zend_Date
当我写的时候
Zend_Debug::dump(Zend_Locale::getTranslationList('type', 'en_US'));
我得到了它的一些元素的长数组
.
.
["hebrew"] => string(15) "Hebrew Calendar"
["indian"] => string(24) "Indian National Calendar"
["islamic"] => string(16) "Islamic Calendar"
["islamic-civil"] => string(22) "Islamic-Civil Calendar"
["japanese"] => string(17) "Japanese Calendar"
.
.
,所以我认为支持伊斯兰日历,希伯来日历 如何实现此功能?
此页面也对此进行了评论http://framework.zend.com/issues/browse/ZF-4291
how to localize the Zend_Date
when i wrote
Zend_Debug::dump(Zend_Locale::getTranslationList('type', 'en_US'));
i got long array some of its elements
.
.
["hebrew"] => string(15) "Hebrew Calendar"
["indian"] => string(24) "Indian National Calendar"
["islamic"] => string(16) "Islamic Calendar"
["islamic-civil"] => string(22) "Islamic-Civil Calendar"
["japanese"] => string(17) "Japanese Calendar"
.
.
so i think Islamic Calendar , Hebrew Calendar is supported how to reach this features?
also it is commented in this page http://framework.zend.com/issues/browse/ZF-4291
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么您不查看文档,这始终是您应该做的第一件事: 使用日期和时间。
因此,使用 Zend_Locale_Format 您可以标准化和转换不同语言环境的日期和时间。
例如,您可以按区域设置标准化数据,如下所示:
希望有帮助;)
。
这就是我从他那里得到的答案:你应该看看 WebCal< /a>.
Why you don't have a look at the documentation, that's always the first thing you should do: Working with Dates and Times.
So with Zend_Locale_Format you can normalize and convert date and time for different locale.
E.g. you can normalize a data by locale like this:
Hope that helps ;)
.
So this is the answer I got from him: you should have a look at WebCal.