Re: New class in PEAR: Translation
| From: | Markus Wolff | Date: | Tue, 01 Oct 2002 11:33:08 +0000 |
| Subject: | Re: New class in PEAR: Translation | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9742@lists.php.net to get a copy of this message | ||
Am Tue, 1 Oct 2002 13:32:41 +0200 schrieb Nicolas Hoizey <nhoizey@php.net>:
> Hi,
>
> > To get a translated string, I´d simply do something like this:
> > $trans = $t->get("Translation is good");
> > [...]
> > The "get" method will look up the string in a database table
>
> I think it would need a cache per page/script system to limit
> ressources needs.
Yep, two possible approaches here:
1. Use a filesystem cache like Cache_Lite
2. Copy translation table to a MySQL HEAP table if available
Regards,
Markus
--
*21st Media* | Consulting, Konzeption, Produktion für die Bereiche:
Markus Wolff | Internet, Intranet, eCommerce, Content Management,
Hamburg,Germany | Softwareentwicklung, 3D-Animation, Videostreaming
http://21st.de | Tel. [+49](0)40/6887949-0, Fax: [+49](0)40/6887949-1