Hy Philip,
you just have to do:
$locale = new Zend_Locale(Zend_Locale::ENVIRONMENT);
$date = new Zend_Date($locale);
Just get sure that you store your locale, f.e. within Zend_Cache
and initiate every date instance with the given locale.
This way you override the standard settings from your clients browsers.
Greetings
Thomas
I18N Team Leader
----- Original Message -----
From: "Philip Iezzi" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, July 07, 2007 1:04 PM
Subject: [fw-general] configure default Zend_Locale for Zend_Date
This may have been discussed earlier on this list but I cannot find the
thread...
How do I configure a default locale for all Zend_Date instances?
I need to override browser detection (Zend_Locale::BROWSER) as wget does
not seem to provide any HTTP_ACCEPT_LANGUAGE environment variable.
Is there a way to set the default locale by PHP's setlocale() in
combination with Zend_Locale::ENVIRONMENT or is Zend_Locale::FRAMEWORK
already implemented in ZF 1.0 ? Setting component defaults is a must for
ZF, in my eyes.
If there is currently no way to do this, can anybody pls tell me how to
set HTTP_ACCEPT_LANGUAGE for wget on a Debian Etch system?
Thanks a lot
Philip