Re: [SMARTY] smarty and GNU gettext
| From: | Vicente Werner | Date: | Wed, 31 May 2006 10:56:41 +0000 |
| Subject: | Re: [SMARTY] smarty and GNU gettext | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13454@lists.php.net to get a copy of this message | ||
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 <marcus@synchromedia.co.uk> 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 marcus@synchromedia.co.uk | 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