>>> But what about Template-Toolkit?
>>>
>>> Would any of you know of a cool way of doing this just like i18n
>>> does for Perl? Is there a Plugin or a filter for Template-Toolkit?
>
> Some cool ideas from Eric and Lee, although this:
>
> [% lh.maketext('Great googly moogly, why did you kill me [_1]?',
> you) %]
>
> Kinda rubs me the wrong way because it seems like *another*
> language ;)
Its just a method call with a sprinf-ish bracket notation that has, in
practice, efficiently and completely allowed us to create things that
support dozens of languages *very* simply.
It's actually a simple elegant solution to localization, see
Local::Maketext or details.
Trust me, you thank me later :)
> As an exercise I wonder how many lanugages are needed to render the
> above... PERL, probably SQL, TT, Maketext, HTML, likely CSS and/or
> Javascript, not to mention English! Horror.
This makes no sense, substitute 'maketext' for 'gettext', or 'some
plugin' etc: it *is* one more thing: localization support.
Depending on where you want it to render this is true of anything,
you'll have localize it somehow...
You might as well include Assembly code, C, Apache, Linux, etc since
those are also involved.
Locale::Maketext is excellent, in fact major software uses it, For
example cPanel will be using it soon:
http://www.cpanel.net/conference/08/files/Localization.pdf
(might want to read over that as it show's examples of why its great,
has TT example and compares it to gettext)
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates