On Wed, Dec 03, 2008 at 02:23:46AM +0000, Travis Basevi wrote:
> I'm surprised there's no Template::Plugin::Locale::Maketext on cpan, 
> seems like an obvious one, especially given that 
> Locale::Maketext::Extract::Plugin::TT2 implies a de facto standard 
> format used in TT2 with l(...) and loc(...)

In my Catalyst applications I have a language handle that gets passed
to the templates and also to form generation code (to localize errors,
select lists, etc) and anything else that needs it (which is not much
considering templates are used for all rendering).  Not very exciting.
I use loc( text, args ) in the templates.

I also alter the template include path based on the current language
so that I can break templates into text blocks and move text blocks
into a directory named for the language.

Failed lookups get written to the error log in case a translation gets
missed.

-- 
Bill Moseley
[EMAIL PROTECTED]
Sent from my iMutt


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to