From 49b7cab6d1510010fac0345701ba8e46ea9b39a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 28 Jun 2010 13:18:55 +0200 Subject: [PATCH] =?utf8?q?Bei=20fehlender=20=C3=9Cbersetzung=20nicht=20?= =?utf8?q?=C3=BCbersetzten=20Begriff=20zur=C3=BCckggeben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Conflicts: SL/Template/Plugin/LxERP.pm --- SL/Template/Plugin/LxERP.pm | 2 +- SL/Template/Plugin/T8.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Template/Plugin/LxERP.pm b/SL/Template/Plugin/LxERP.pm index df6cb6ad6..8f3a9980d 100644 --- a/SL/Template/Plugin/LxERP.pm +++ b/SL/Template/Plugin/LxERP.pm @@ -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; diff --git a/SL/Template/Plugin/T8.pm b/SL/Template/Plugin/T8.pm index 339faa941..e736e0cd2 100644 --- a/SL/Template/Plugin/T8.pm +++ b/SL/Template/Plugin/T8.pm @@ -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'; -- 2.20.1