I've been pondering wriitng something so that I can do
[%# loads the fr.po or similar %]
[% USE Language("fr") %]
[%# prints "bonjour" %]
[% "hello" %]
[% foo = "hello" %]
[%# also prints "bonjour" %]
[% foo %]
I seem to remember getting a prototype of this working before by
providing a subclass of Template::Directive that overrode text() and
get() and possibly quoted() so that they ran variables though translate
subruitne that I inserted in the boiler plate.
But that was several years ago and I forget how I did it.
Any suggestions?
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates