Re: [SMARTY] smarty and GNU gettext

"Vicente Werner" <[email protected]> Wed, 31 May 2006 12:19:44 +0200
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
My translation system works this way:

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.
4. The final page is then send to the browser for viewing.


On 5/31/06, Marcus Bointon <[email protected]> wrote:
>
> On 31 May 2006, at 09:47, Vicente Werner wrote:
>
> > SELECT strSTRING,strTranslation FROM tblTerms WHERE coLanguage =
> > 'EN' and
> > strSTRING IN ('list','of','strings','to','collect');
>
> That's a nice way to do it. How do you get the list of strings? Do
> you have a plugin that pre-parses the current template for the
> translation keys so they are cached when the display tags request them?
>
> Marcus
> --
> Marcus Bointon
> Synchromedia Limited: Putting you in the picture
> [email protected] | http://www.synchromedia.co.uk
>
>


-- 
Vicente Werner y Sánchez