1 package SL::Template::Plugin::T8;
3 use Template::Plugin::Filter;
4 use base qw( Template::Plugin::Filter );
11 $locale ||= Locale->new($main::myconfig{countrycode}, 'all');
13 # first arg can specify filter name
14 $self->install_filter($self->{ _ARGS }->[0] || 'T8');
20 my ($self, $text, $args) = @_;
21 return $locale->text($text, @{ $args || [] });
24 return 'SL::Template::Plugin::T8';