Re: [SMARTY] smarty and GNU gettext
| From: | Marcus Bointon | Date: | Wed, 31 May 2006 10:34:16 +0000 |
| Subject: | Re: [SMARTY] smarty and GNU gettext | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13453@lists.php.net to get a copy of this message | ||
On 31 May 2006, at 11:19, Vicente Werner wrote:
1.Subtemplate rendering. All translatable strings are marked for translation and added to a list for later translation. (Here's where the block plugin works) 2. Render the full page. 3. A filter works at this moment requesting all the translations from all the needed strings and replacing all the marks with the translated strings.So your template blocks don't actually render the text - do you render instead to some kind of intermediate tag that's easy to do a regex for in your output filter? e.g. {{{translationid}}} How do you pass the list of translations to the output filter? Do you stick it in the $smarty instance? Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk