There are exmples:
Look into the manual into chapter Zend_Date,
http://framework.zend.com/manual/en/zend.date.constants.html#zend.date.constants.selfdefinedformats

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com


----- Original Message ----- From: "Bruno Friedmann" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Sunday, August 10, 2008 9:11 PM
Subject: Re: [fw-general] Zend_Date + Zend_Locale bug ( missing translation localisation ? )


Sorry to bother you Master of Local & Date.

How should I call Zend_Date to have the following result for the actual time
Donnerstag, 10. August 2008
That not indicate in doc not in api ( no sample given)
Addition & substract etc are present, but no sample code.



Thomas Weidner wrote:
Hy Bruno,

Each locale defines the dateformats in a different way.
OK I have learn that. But my real concern is why I don't get the translation for DE, de_DE, de_CH ?

You did not ask for an output in a localized format.

And you defined to return the default date/time format from this locale.
Btw: Using DATE_FULL as input where no input is given is quite useless. It will be ignored. ;-)
have misunderstood the documentation I'm thinking that if I don't give it automatically use time();

It uses time(), but why did you define DATE_FULL as input.. when you ask for the actual time as input it is useless to define another inputformat because time() will be caught as timestamp.

And when you want to have a fixed outputformat you should define it.
That's exactly why I ask a localized format ;-)))))
Otherwise the old php date would be sufficient no ?

No, you did not ask for a localized format.
You just asked for the date returned as object without time. Look at the API doc of the methods you used. Using __toString in an inplicit way does not mean that the date is localized. This depends on the default format of the used locale. And german does not include a localized month in the default format.

There is no error.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com


--

     Bruno Friedmann

Ioda-Net Sàrl   - www.ioda-net.ch
  2830 Vellerat - Switzerland

  Tél : ++41 32 435 7171
  Fax : ++41 32 435 7172
  gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : www.cfcel.com

Reply via email to