Re: [SMARTY-GENERAL] 1 shot translation

From: Date: Thu, 04 Apr 2002 20:06:56 +0000
Subject: Re: [SMARTY-GENERAL] 1 shot translation
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3492@lists.php.net to get a copy of this message
Yeah, the logo seems to be the topic du jour. On Thu, 04 Apr 2002, olivier hericord wrote: > Hmmmm.... No answer > > Translation is not a topic as hot as i thought..... > > To bad > > Friendly > Olivier > > > > I know that the way to deal with multilingual translation is a hot topic on > > the smarty mailing list. > > I made a smarty function to achieve translation, and I request this process > > by putting this in my template. > > {translation VERBOSE="never"} > > It takes the translation from a database or from a php file containing an > > array AND IT WORKS FINE!! > > > > > > MY PROBLEME IS: > > > > When a have a section which outputs 90 rows with 3 translation by rows like > > {translation VERBOSE="change"} , {translation VERBOSE="delete"} > > {translation > > VERBOSE="details"}, it proceeds to 270 translations => 270 HITS ON THE > > DATABASE TO TRANSLATE 90 TIMES THE SAME THING!!!!!!!!!!!!! > > > > What's the solution?? PreFilters??? PostFilters??? > > Are postfilters executed at every request of an already compiled template??? > > If YES, could it be possible to build a postfilter to parse the compiled > > template to find particular tags and to replace them with a single needed > > access to the DB????? > > > > > > Friendly > > Olivier > > > > > > Any sufficiently advanced software technology is indistinguishable from > > magic - Arthur C. Clarke > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -Andrei * "I do not envy the guy at asdf@asdf.com." -- me *

« previous php.smarty.general (#3492) next »