Hi,

I think, that actually two different function names are needed.
First you need a function which is called on every visualization of the 
template, e.g. every time the user sees it.
The second is a static block, which calls the translation function only once 
on compile time for texts which do never change, e.g. "Enter password here:". 
This block makes use of the template feature of static blocks, which are 
called only on compile time.

An optional argument to tell the language may be needed on some special pages:

{tr "Please choose your language" language "en"}
{tr "Please choose your language" language "de"}
{tr "Please choose your language" language "fr"}

And then there's still issue 12161 about variables in static texts. As you've 
marked it as related to this topic, it may be considered.

Cheers,

Thomas Koch

[1] http://issues.ez.no/IssueView.php?Id=12161&ProjectId=1
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to