RE: [PEAR-DEV] New class in PEAR: Translation

From: Date: Tue, 01 Oct 2002 11:50:54 +0000
Subject: RE: [PEAR-DEV] New class in PEAR: Translation
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9744@lists.php.net to get a copy of this message
> From: Markus Wolff [mailto:wolff@21st.de] > Sent: Tuesday, October 01, 2002 1:45 PM > > Am Tue, 01 Oct 2002 13:30:44 +0200 schrieb Markus Wolff <wolff@21st.de>: > > > > The base should be something more abstract like "mail_error" and also > it > > > would make sense to group the texts into something like general and > > > modul specific. So you can say $t->get('mail_error', > > > 'contact'); > > > ommitting 'contact' would mean you want the general translation. > [...] > > However, this is a behaviour that could be easily configured through > > such a class as the database model can be almost the same for both > > approaches. > > Thinking more about it, our approaches are more compatible than I > thought... cause you can always store an abbreviation in "BASE" and set > the DE,EN,FR,etc. columns to whatever you want. > > If you want module specific translations, add another column "module" that > is only used if a second parameter is passed to get(). Piece of cake. > yeah indeed and i guess caching would be done best at the template level, anyways i dont think it needs to be in the translation class. Regards, Lukas

« previous php.pear.dev (#9744) next »