Bei fehlender Übersetzung nicht übersetzten Begriff zurückggeben.
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 28 Jun 2010 11:18:55 +0000 (13:18 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 28 Jun 2010 11:18:55 +0000 (13:18 +0200)
Conflicts:

SL/Template/Plugin/LxERP.pm

SL/Template/Plugin/LxERP.pm
SL/Template/Plugin/T8.pm

index df6cb6a..8f3a998 100644 (file)
@@ -109,7 +109,7 @@ sub abs {
 sub t8 {
   my ($self, $text, $args) = @_;
   $self->{locale} ||= Locale->new($::myconfig{countrycode}, 'all');
-  return $self->{locale}->text($text, @{ $args || [] });
+  return $self->{locale}->text($text, @args) || $text;
 }
 
 1;
index 339faa9..e736e0c 100644 (file)
@@ -18,7 +18,7 @@ sub init {
 
 sub filter {
   my ($self, $text, $args) = @_;
-  return $locale->text($text, @{ $args || [] });
+  return $locale->text($text, @{ $args || [] }) || $text;
 }
 
 return 'SL::Template::Plugin::T8';