X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7130d91ec4941cad5aba49bdd39911a2d5fa9a89..49b7cab6d1510010fac0345701ba8e46ea9b39a5:/SL/Template/Plugin/LxERP.pm diff --git a/SL/Template/Plugin/LxERP.pm b/SL/Template/Plugin/LxERP.pm index c26988beb..8f3a9980d 100644 --- a/SL/Template/Plugin/LxERP.pm +++ b/SL/Template/Plugin/LxERP.pm @@ -106,4 +106,10 @@ sub abs { return $var < 0 ? $var * -1 : $var; } +sub t8 { + my ($self, $text, $args) = @_; + $self->{locale} ||= Locale->new($::myconfig{countrycode}, 'all'); + return $self->{locale}->text($text, @args) || $text; +} + 1;