Re: [PHPTAL] Fwd: stripping or escaping php code in templates

2009-08-10 Thread Kornel Lesinski
On 9 Aug 2009, at 23:01, Iván -DrSlump- Montes wrote: Have a look at PHP's tokenizer function token_get_all. It will give you a rock solid base for your filter since it uses the same parser used in the PHP engine. Actually it might not be that simple, because XML is parsed by PHPTAL and i

Re: [PHPTAL] PHP newline consumption

2009-08-10 Thread Kornel Lesinski
On 7 Aug 2009, at 16:15, Richard Cernava wrote: A "feature" of PHP's is to consume a newline when it is following it's closing tag (http://bugs.php.net/bug.php?id=28381). The reason I bring this up is because this issue affects PHPTAL's output. Take for example: I'm on a line I'm on a line

[PHPTAL] Problem using i18n

2009-08-10 Thread Łukasz Palka
Hi, I don't know how to use i18n. I made a template, made two .mo files, and I don't know how to set language. I have two versions: 'pl_PL' and 'en_GB', and pl_PL are always used. I don't know how to change language to en_GB. I was trying some combinations on setLanguage() and sometimes I got Exce

Re: [PHPTAL] Problem using i18n

2009-08-10 Thread Kornel Lesiński
On 10-08-2009 at 13:29:27 Łukasz Palka wrote: I don't know how to use i18n. I made a template, made two .mo files, and I don't know how to set language. I have two versions: 'pl_PL' and 'en_GB', and pl_PL are always used. I don't know how to change language to en_GB. I was trying some combinati

Re: [PHPTAL] Problem using i18n

2009-08-10 Thread Łukasz Palka
> Most common gotcha is that Apache with mod_php has to be restarted every > time you change .mo files (there are no problems with other servers or > FastCGI). Yeah, I know that, but still ... :/ Regards, Łukasz ___ PHPTAL mailing list PHPTAL@lists.mot

Re: [PHPTAL] Problem using i18n

2009-08-10 Thread admirau
W dniu 2009-08-10 15:13, Kornel Lesiński pisze: On 10-08-2009 at 13:29:27 Łukasz Palka wrote: I don't know how to use i18n. I made a template, made two .mo files, and I don't know how to set language. I have two versions: 'pl_PL' and 'en_GB', and pl_PL are always used. I don't know how to chan