Re: printing current date
| From: | Hans-Peter Oeri | Date: | Thu, 09 Aug 2001 16:03:09 +0000 |
| Subject: | Re: printing current date | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1321@lists.php.net to get a copy of this message | ||
Hi!
Quoting Monte Ohrt <monte@ispi.net>:
> My question is, what should the name be? Will "now" make sense for
> everyone?
I think "now" is just fine. Especially if we do not know HOW it is used
(passed to dateformat)
> Also, "now" would actually be the current date and time, a unix
> datestamp for passing to date_format. Sound good?
A must! Everything else is against all internationalization!
Talking about feedback and internationalization:
Some time ago, I posted a SUGGESTION on how to enable smarty to handle
translation in templates. The approach, I think, was generic enough not to
interfere with those not needing translations (or enough performance to
translate after compilation and no need for vars in the translated strings).
Furthermore, the framework could well be used for other uses. (Just as an
idea: one could even stack different smarty processors in order to have a
"half-compiled" template!)
If one doesn't use that framework, the overhead should be neglectable (just
passing one more parameter in some places (in the running environment)).
Unfortunately, I got almost no feedback... Was my suggestion that stupid, was
my intention not clear enough or am I the only one who likes this generic
approach? If it annoys anyone on the list, please tell me.. I'm bringing it up
again and again because translations are important for me ;)
Don't conform!
IkKampfCaspar75