[PHPTAL] (no subject)

2010-09-15 Thread GRolf
I have records in a table that have a "status" field, which contains a status in 'code' (i.e. "NEW", "PENDING", "APPROVED", ...). There is no conversion table for the moment When outputting this, I'd like to convert this status code to some more human-readable form ('Awaits approval', ...).

Re: [PHPTAL] (no subject)

2010-09-15 Thread Ivo Võsa
GRolf wrote: I have records in a table that have a "status" field, which contains a status in 'code' (i.e. "NEW", "PENDING", "APPROVED", ...). There is no conversion table for the moment When outputting this, I'd like to convert this status code to some more human-readable form ('Awaits appro

Re: [PHPTAL] Translate field

2010-09-15 Thread Kornel Lesiński
On 15-09-2010 at 13:04:09 GRolf wrote: I have records in a table that have a "status" field, which contains a status in 'code' (i.e. "NEW", "PENDING", "APPROVED", ...). There is no conversion table for the moment When outputting this, I'd like to convert this status code to some more huma

Re: [PHPTAL] (no subject)

2010-09-15 Thread Ivo Võsa
Tom De Bruyne wrote: Thanks for your feedback. It seems a viable solution, not too complicated. Afterwards I can just call this by using i18n? So, now I have ${status} That would need to become ${status} or ... ? yes, my current iplementation is somthing like that public function t