Hi,

I have the following code in bootstrap (as early as possible, after
Autoloader init) :

$locale = new Zend_Locale('de');
Zend_Locale::setDefault($locale);

Then in some file :

$date = new Zend_Date();
echo $date->get(Zend_Date::WEEKDAY) . '<br>';

It will always return me french.
I can return german by changing it to :

$date = new Zend_Date(NULL, NULL, Zend_Locale('de'));
echo $date->get(Zend_Date::WEEKDAY) . '<br>';

However, I would like it to work with Zend_Locale::setDefault() to avoid to
explicitely specify the locale each time.

Why doesn't it work for me ?
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/How-to-make-Zend-Locale-setDefault-locale-work-tp2713941p2713941.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to