Re: [SMARTY] smarty and GNU gettext
| From: | Vicente Werner | Date: | Wed, 31 May 2006 10:19:44 +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-13452@lists.php.net to get a copy of this message | ||
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 <marcus@synchromedia.co.uk> 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 marcus@synchromedia.co.uk | http://www.synchromedia.co.uk-- Vicente Werner y Sánchez