Re: [SMARTY-GENERAL] 1 shot translation
| From: | Andreas Kossmeier | Date: | Thu, 04 Apr 2002 20:11:53 +0000 |
| Subject: | Re: [SMARTY-GENERAL] 1 shot translation | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-30@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