For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2006 > Re: [SMARTY] smarty and GNU gettext









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] smarty and GNU gettext
Vicente Werner

2006-05-31, 8:13 am

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:
>
>
> 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com