Re: [SMARTY-GENERAL] 1 shot translation

From: Date: Thu, 04 Apr 2002 20:16:06 +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-3494@lists.php.net to get a copy of this message
Monte Ohrt wrote:
Try out the block functionality in the cvs version of Smarty. You can do this with a custom block function: {translate lang="en"} blah blah blah {/translate}
i don't think that this is solving his problem ;) but it's not a matter of the template engine. what about using a caching layer for the database calls in your custom function? should decrease your db calls to a minimum. BTW: using a block function like shown above is IMO the cleaner solution for translating tag :) -- andreas kossmeier bergfex.at - http://www.bergfex.at

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