Re: [PHPTAL] Changing PHPTAL i18n compilation

2010-04-12 Thread Kornel LesiƄski
On 02.04.2010, at 14:20, Florent wrote: > > I know that phptal i18n gettext implementation is fetching translations > at run time. > Performance-wise, it would be interesting to fetch translations at parse > time and cache one compiled template per locale. > Some workaround would be needed for plu

Re: [PHPTAL] Changing PHPTAL i18n compilation

2010-04-09 Thread Robert Goldsmith
As part of my integration into Zend Framework, I wrote a replacement translator service for phptal. you basically just write a class that implements PHPTAL_TranslationService and then when you create the phptal instance you call its 'setTranslator' method and pass in an instance of your class.

[PHPTAL] Changing PHPTAL i18n compilation

2010-04-02 Thread Florent
Hi, I know that phptal i18n gettext implementation is fetching translations at run time. Performance-wise, it would be interesting to fetch translations at parse time and cache one compiled template per locale. Some workaround would be needed for plural translation, probably some generated code ba