Re: [PHPTAL] i18n:translate and dynamic tal:content

2009-11-23 Thread Kornel Lesinski
On 23 Nov 2009, at 16:07, Tjerk Meesters wrote: What do you mean by all-whitespace translation keys? I hope that doesn't mean i18n:translate="" will stop working, because we rely heavily on this feature ;-) This will work: keyname These will not: -- regards, Kornel _

Re: [PHPTAL] i18n:translate and dynamic tal:content

2009-11-23 Thread Tjerk Meesters
Hi, What do you mean by all-whitespace translation keys? I hope that doesn't mean i18n:translate="" will stop working, because we rely heavily on this feature ;-) On 11/23/09, Kornel Lesiński wrote: > On 22.11.2009, at 20:16, lo...@nic.fi wrote: > >> I'v got a problem translating text that is pr

Re: [PHPTAL] i18n:translate and dynamic tal:content

2009-11-23 Thread Kornel Lesiński
On 23-11-2009 at 05:28:13 wrote: I want my translator to translate if there's a translation available and use the key text when there isn't. So I added a few lines to translate function. Does this seem like a good way of doing this? public function translate($key, $htmlencode=true) {