]> wagnertech.de Git - kivitendo-erp.git/commitdiff
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 df6cb6ad6cb4944131bb4e96f0063a5eceeef60c..8f3a9980dc4eecce184a5273eafd6e9aa77ed904 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 339faa94157a1a59fb7a47403eee10170939df75..e736e0cd24635ca360bf20abe704a836be40db73 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';