[RFC] Automatic localisation of templates  Simon Wistow simon at
thegestalt.org Thu Jan 19 12:22:56 GMT 2006  I've written a
plugin for TT that, given this          [%- USE
Localisation('MyTranslation') -%]         [%- SET foo =
"_GREETING_" -%]         [% foo %]         [% "_GREETING_" %]
and a Locale::MakeText lexicon module called 'MyTranslation'
which  contains an entry for __GREETING__ mapping to 'Hello'
and changing the first line to          [%- USE
Localisation('MyTranslation','fr') -%]  prints (providing you've
provided a french lexicon)   Obviously something like       [%
USE CGI %]         [% USE
Localisation('MyTranslation',CGI.http('Accept-language')) %]
would be very useful.  Strings not in the lexicon are left
untranslated.   There's still a couple of issues to be sorted
out and I'm not convinced that Locale::MakeText is the right
il8n module to use for various reasons (it's really good but a
litle too complicated to use the advanced parts of it. Easier
than making .po files though) but I think this could be really
useful for doi