Re: [SMARTY] smarty and GNU gettext

"Vicente Werner" <[email protected]> Wed, 31 May 2006 12:56:41 +0200
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
In fact my intermediate text looks somethin' like this:

[|ORIGINAL_STRING_IN_CAPS|]

The plugin in fact does nothing than to communicate to the language
subsystem that it'll need that string to be translated to the current
session language.

The language subsystem is the one that keeps the list of strings, is the one
that requests them to the translation resource container, etc..

The filter uses the language subsystem full list to make the translation

On 5/31/06, Marcus Bointon <[email protected]> wrote:
>
> 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
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Vicente Werner y Sánchez