The tra function

How to make the tra function to translate at compile time.

Created by: Jan Lindåker, Last modification: 20 Mar 2005 (21:08 UTC)
The idea was to make away with the tra function by running a postifilter on the php code in the tempate. Unfortunately the tra functions are currently placed in the .php file that invokes the template, which in turn means that the tra functions will never be seen by the postfilter.

In order to get the postfilter method to work the php code has to be moved inside the compiled temlplate. One method is to put the code inside {php} {/php} tags inside the templates. This requires a lot of work.