X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2d3f862b7af94f31860dd264eef7c1bc7de7eae2..0bf218ffc697e15d375347e9ab5a4ece573f295b:/SL/Template/Plugin/T8.pm diff --git a/SL/Template/Plugin/T8.pm b/SL/Template/Plugin/T8.pm index e736e0cd2..2208ff42f 100644 --- a/SL/Template/Plugin/T8.pm +++ b/SL/Template/Plugin/T8.pm @@ -3,13 +3,9 @@ package SL::Template::Plugin::T8; use Template::Plugin::Filter; use base qw( Template::Plugin::Filter ); -my $locale = undef; - sub init { my $self = shift; - $locale ||= Locale->new($main::myconfig{countrycode}, 'all'); - # first arg can specify filter name $self->install_filter($self->{ _ARGS }->[0] || 'T8'); @@ -18,7 +14,7 @@ sub init { sub filter { my ($self, $text, $args) = @_; - return $locale->text($text, @{ $args || [] }) || $text; + return $::locale->text($text, @{ $args || [] }) || $text; } return 'SL::Template::Plugin::T8';