Re: [SMARTY] smarty and GNU gettext

[email protected] (Marcus Bointon) Wed, 31 May 2006 11:34:16 +0100
Newsgroups php.smarty.general
Message-ID <[email protected]>
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
[email protected] | http://www.synchromedia.co.uk