RE: [PEAR-DEV] another template engine for pear?
| From: | Lukas Smith | Date: | Sun, 10 Nov 2002 14:29:39 +0000 |
| Subject: | RE: [PEAR-DEV] another template engine for pear? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10673@lists.php.net to get a copy of this message | ||
> From: Wolfram Kriesing [mailto:lists@kriesing.de]
> Sent: Sunday, November 10, 2002 3:27 PM
> To: smith@dybnet.de
> Cc: pear-dev@lists.php.net
> Subject: Re: [PEAR-DEV] another template engine for pear?
>
> exactly that's what i am planning.
> what i have in my head is actually something like this:
>
> $l10n = new L10N( 'de_DE' ); // localize for 'de_DE'
> $l10n->formatDate( $timestamp );
> $l10n->formatCurrency( $amount );
formatDate() should also accept an optional parameter where you can
define short, long etc
> for the date there has to be some special timestamp, like one as the
> default one, which start 1970, and another one which also handles
dates
> that are before that ... but the formatDate-method shall somehow (if
> possible) detect itself which one it is, so the API stays simple.
>
> and the PEAR::Date class would only need to handle timestamps, so i
> think it would work with the current implementation even without
> changes, right?
Probably ... if it handles mon as the first day of the week just as sun
... but that is sort of a separate issue.