projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Globale Variablen für Druckvorlagen nach %::lx_office_conf verschoben
[kivitendo-erp.git]
/
SL
/
Template
/
Plugin
/
T8.pm
diff --git
a/SL/Template/Plugin/T8.pm
b/SL/Template/Plugin/T8.pm
index
e736e0c
..
6c584d7
100644
(file)
--- a/
SL/Template/Plugin/T8.pm
+++ b/
SL/Template/Plugin/T8.pm
@@
-1,15
+1,13
@@
package SL::Template::Plugin::T8;
package SL::Template::Plugin::T8;
+use strict;
+
use Template::Plugin::Filter;
use base qw( Template::Plugin::Filter );
use Template::Plugin::Filter;
use base qw( Template::Plugin::Filter );
-my $locale = undef;
-
sub init {
my $self = shift;
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');
# 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) = @_;
sub filter {
my ($self, $text, $args) = @_;
- return $locale->text($text, @{ $args || [] }) || $text;
+ return $
::
locale->text($text, @{ $args || [] }) || $text;
}
return 'SL::Template::Plugin::T8';
}
return 'SL::Template::Plugin::T8';