Nur ein globales Locale-Objekt anlegen
[kivitendo-erp.git] / SL / Template / Plugin / LxERP.pm
index b36fceb..40bf195 100644 (file)
@@ -110,8 +110,7 @@ sub abs {
 
 sub t8 {
   my ($self, $text, @args) = @_;
-  $self->{locale} ||= Locale->new($::myconfig{countrycode}, 'all');
-  return $self->{locale}->text($text, @args) || $text;
+  return $::locale->text($text, @args) || $text;
 }
 
 1;