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

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







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

Copyright 2008 codecomments.com