Re: Trying to catch up
| From: | (Mikhail Zabaluev) | Date: | Tue, 17 Oct 2000 04:13:37 +0000 |
| Subject: | Re: Trying to catch up | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-394@lists.php.net to get a copy of this message | ||
Hello Chuck,
On Mon, Oct 16, 2000 at 17:06 -0400, Chuck Hagenbuch wrote:
>
> > ----multilingual support, kind of like the LOCALES
> > as known from java, although my main focus actually
> > was intended to provide a class which automates
> > translation, like i have a function called
> > $translate->get(SOME_TEXT_CONSTANT);
> > which then gets the text in the current language, which
> > can be set before by using
> > $translate->language = 'ISO constants for language'
> > anyway i still think it makes sense to use a kind of
> > class as provided by java (and extend it IF necessary)
>
> gettext provides translation, and I'd hate to see us write a class to handle
> this when it does the job very well already...
A modular l10n framework essentially won't hurt. I made outlines of
Message_Array and Message_Gettext classes for translation of messages in
gettext style, Message_Array being the implementation via an associative
array. Should put some more effort in these...
--
Stay tuned,
MhZ mailto:mookid@sigent.ru
-----------
We're living in a golden age. All you need is gold.
-- D.W. Robertson.