On Dec 2, 2008, at 18:23, 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(...)
I'm guesing it's because most applications need localization for things not in TT, too. Also "figure out which language to use" is something you don't want to do in TT, so it works out that you need a bit of stub code integration into your app anyway. http://git.develooper.com/?p=ntppool.git;a=tree has an example, look in i18n/, lib/NTPPool/Control.pm and lib/NP/I18N.pm http://git.develooper.com/?p=ntppool.git;a=blob;f=lib/NTPPool/Control.pm;h=ce2ecd67f57b657244c24f7b41833158b896bf7e;hb=HEAD http://git.develooper.com/?p=ntppool.git;a=blob;f=lib/NP/I18N.pm;h=bb6a11ff2de44f6d549a252cbc92392574d59847;hb=HEAD - ask -- http://develooper.com/ - http://askask.com/ _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
