It's all there...
$locale = new Zend_Locale();
$monthlist = $locale->getTranslationList('months', 'es_ES');
But you will have to wait some days until 1.5RC is released...
Greetings
Thomas Weidner, I18N Team Leader
http://www.thomasweidner.com
----- Original Message -----
From: "Juan Felipe Alavarez Saldarriaga" <[EMAIL PROTECTED]>
To: "fw-general" <[email protected]>
Sent: Thursday, January 24, 2008 5:52 PM
Subject: [fw-general] How to get year months using Zend_Date with
Zend_Locale support ?
Hey :).
I'm traying to get all the year months using Zend_Date and then translate
those names with Zend_Locale, I have this:
for ( $intMonthCounter = 1; $intMonthCounter <= 12; $intMonthCounter++ )
{
$objDate = new Zend_Date( $intMonthNumber, Zend_Date::MONTH,
$this->objLocale );
}
So how to get the month name, like 'December', 'November' but using
Zend_Locale too ? I mean, is possible to get a month name using
Zend_Locale for the current Locale set, like es_ES ?
Thx for any help.