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

2009-11-23 Thread Kornel Lesiński
On 23-11-2009 at 05:28:13 lo...@nic.fi 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,

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 kor...@aardvarkmedia.co.uk wrote: On 22.11.2009, at 20:16, lo...@nic.fi wrote: I'v got a problem

[PHPTAL] i18n:translate and dynamic tal:content

2009-11-22 Thread loupe
Hi, I'v got a problem translating text that is printed dynamically from a mysql database. I'm printing body part names and the related muscle names by using nested tal:repeat. In the inner loop I'd like to echo the muscle name and translate it if there's a translation available. Here's what I

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

2009-11-22 Thread loupe
On 22.11.2009, at 20:16, lo...@nic.fi wrote: I'v got a problem translating text that is printed dynamically from a mysql database. I'm printing body part names and the related muscle names by using nested tal:repeat. In the inner loop I'd like to echo the muscle name and translate it if