X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/49b7cab6d1510010fac0345701ba8e46ea9b39a5..68525bb179b59bf35362e7a9e482bc17ebfd32c8:/SL/Template/Plugin/T8.pm diff --git a/SL/Template/Plugin/T8.pm b/SL/Template/Plugin/T8.pm index e736e0cd2..6c584d72c 100644 --- a/SL/Template/Plugin/T8.pm +++ b/SL/Template/Plugin/T8.pm @@ -1,15 +1,13 @@ package SL::Template::Plugin::T8; +use strict; + 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 +16,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';